summaryrefslogtreecommitdiff
path: root/source4/web_server/wsgi.c
AgeCommit message (Collapse)AuthorFilesLines
2012-12-05wsgi: Serve '500 Internal Server Error' page when errors occur.Jelmer Vernooij1-0/+19
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Wed Dec 5 18:40:25 CET 2012 on sn-devel-104
2012-12-05wsgi: When encountering error in Python code, print traceback to logs.Jelmer Vernooij1-9/+52
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2012-11-22web_server: the web server is not multi-process, indicate so in WSGI.Jelmer Vernooij1-1/+1
This is a requirement for some of the paster middleware used by SWAT2. Reviewed-by: Matthieu Patou <mat@matws.net>
2012-11-22web_server: Properly decrement reference counters for python objects in wsgi.Jelmer Vernooij1-29/+81
Reviewed-by: Matthieu Patou <mat@matws.net>
2012-11-22web_server: Properly set SCRIPT_NAME and PATH_INFO.Jelmer Vernooij1-2/+5
Reviewed-by: Matthieu Patou <mat@matws.net>
2012-11-22web_server: Create a string object for SERVER_PORT variable.Jelmer Vernooij1-1/+1
This matches the behaviour of other wsgi server implementations. Reviewed-by: Matthieu Patou <mat@matws.net>
2012-11-22web_server/wsgi: Don't segfault when wsgi app doesn't return iterable.Jelmer Vernooij1-0/+5
There is a bug in the application if this happens, but invalid Python code shouldn't cause segfaults. Reviewed-by: Matthieu Patou <mat@matws.net>
2011-02-07s4-python Don't force "bin" into the python sys.pathAndrew Bartlett1-1/+2
This patch uses the fact that dyn_PYTHONDIR and dyn_PYTHONARCHDIR is now set properly at all times, incluidng for installed and build-directory binaries. So we don't need to make assumptions about bin being magic any more. Andrew Bartlett
2011-01-17web_server: Avoid references to swat. Load samba.web_server instead.Jelmer Vernooij1-5/+8
2011-01-01s4-python: Only set BASETYPE flag if subclassing is supported.Jelmer Vernooij1-3/+3
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Jan 1 03:39:58 CET 2011 on sn-devel-104
2010-12-12s4:dsdb/pydsdb.c and web_server/wsgi.c - remove accidentally introduced ↵Matthias Dieter Wallnöfer1-4/+0
Py_RETURN_NONE This was only thought for Python 2.3 which we generally no longer support (only pyldb in the LDB library is an exception).
2010-12-12s4:web_server/*.c - optimise includesMatthias Dieter Wallnöfer1-1/+0
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Dec 12 18:23:05 CET 2010 on sn-devel-104
2010-12-12s4:web_server/wsgi.c - fix a counter typeMatthias Dieter Wallnöfer1-1/+1
2010-12-12s4:web_server/wsgi.c - add missing Python compatibility codeMatthias Dieter Wallnöfer1-0/+11
2010-11-14web_server: Build as module.Jelmer Vernooij1-4/+4
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 14 17:58:05 UTC 2010 on sn-devel-104
2010-05-30s4:web_server/wsgi.c - free the "env" and "inputstream" objects on an ↵Matthias Dieter Wallnöfer1-0/+2
"asprintf" failure
2010-05-28s4:web_server/wsgi.c - provide a better out-of-memory handling for an ↵Matthias Dieter Wallnöfer1-1/+2
"asprintf" call
2010-05-28s4:web_server/wsgi.c - fix "asprintf" callMatthias Dieter Wallnöfer1-1/+3
2010-04-28s4:web_server: use tsocket_address functions to get the local ip and portStefan Metzmacher1-5/+11
metze (cherry picked from commit 9a1a00199c2603376eacfdba7e7d0d55bc64f405)
2010-04-27Revert "s4:web_server: use tsocket_address functions to get the local ip and ↵Matthias Dieter Wallnöfer1-11/+5
port" This reverts commit 9a1a00199c2603376eacfdba7e7d0d55bc64f405. This broke the build.
2010-04-27s4:web_server: use tsocket_address functions to get the local ip and portStefan Metzmacher1-5/+11
metze
2010-02-09s4:Remove "Py_RETURN_NONE" compatibility codeMatthias Dieter Wallnöfer1-4/+0
This was needed only by Python 2.3 which we no longer support.
2009-10-23s4-python: we need to include Python.h firstAndrew Tridgell1-1/+1
If we don't include Python.h first then we get a pile of warnings due to broken redefines of XOPEN_SOURCE in the Python includes.
2009-02-02s4:web_server: s/private/private_dataStefan Metzmacher1-2/+2
metze
2009-01-08Avoid using a utility header for Python replacements included in Samba,Jelmer Vernooij1-1/+5
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-07s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4Tim Prouty1-1/+1
2009-01-06py: Properly increase the reference counter of Py_None.Jelmer Vernooij1-4/+4
2008-12-23Fix more compiler warnings in various places.Jelmer Vernooij1-4/+0
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij1-2/+2
2008-09-21Support POST requests again, provide more variables in environment.Jelmer Vernooij1-31/+75
2008-09-21First GET request works. SWAT now displays a Hello world message.Jelmer Vernooij1-2/+1
2008-09-21Properly call WSGI request handler when requests come in.Jelmer Vernooij1-28/+176
2008-09-21Remove support for ESP in the web server.Jelmer Vernooij1-7/+7
2008-09-21Remove some dependencies of the web server on esp.Jelmer Vernooij1-9/+15
2008-09-21Add input / error stream objects in WSGI implementation.Jelmer Vernooij1-13/+100
2008-09-21Add more parts of the WSGI implementation.Jelmer Vernooij1-2/+40
2008-09-21Add initial work on WSGI support in the web server.Jelmer Vernooij1-0/+69