summaryrefslogtreecommitdiffstats
path: root/source4/web_server/wsgi.c
Commit message (Collapse)AuthorAgeFilesLines
* Move python modules from source4/scripting/python/ to python/.Jelmer Vernooij2013-03-021-1/+1
| | | | | | | Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Mar 2 03:57:34 CET 2013 on sn-devel-104
* wsgi: Serve '500 Internal Server Error' page when errors occur.Jelmer Vernooij2012-12-051-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
* wsgi: When encountering error in Python code, print traceback to logs.Jelmer Vernooij2012-12-051-9/+52
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* web_server: the web server is not multi-process, indicate so in WSGI.Jelmer Vernooij2012-11-221-1/+1
| | | | | | This is a requirement for some of the paster middleware used by SWAT2. Reviewed-by: Matthieu Patou <mat@matws.net>
* web_server: Properly decrement reference counters for python objects in wsgi.Jelmer Vernooij2012-11-221-29/+81
| | | | Reviewed-by: Matthieu Patou <mat@matws.net>
* web_server: Properly set SCRIPT_NAME and PATH_INFO.Jelmer Vernooij2012-11-221-2/+5
| | | | Reviewed-by: Matthieu Patou <mat@matws.net>
* web_server: Create a string object for SERVER_PORT variable.Jelmer Vernooij2012-11-221-1/+1
| | | | | | This matches the behaviour of other wsgi server implementations. Reviewed-by: Matthieu Patou <mat@matws.net>
* web_server/wsgi: Don't segfault when wsgi app doesn't return iterable.Jelmer Vernooij2012-11-221-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>
* s4-python Don't force "bin" into the python sys.pathAndrew Bartlett2011-02-071-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
* web_server: Avoid references to swat. Load samba.web_server instead.Jelmer Vernooij2011-01-171-5/+8
|
* s4-python: Only set BASETYPE flag if subclassing is supported.Jelmer Vernooij2011-01-011-3/+3
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Jan 1 03:39:58 CET 2011 on sn-devel-104
* s4:dsdb/pydsdb.c and web_server/wsgi.c - remove accidentally introduced ↵Matthias Dieter Wallnöfer2010-12-121-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).
* s4:web_server/*.c - optimise includesMatthias Dieter Wallnöfer2010-12-121-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
* s4:web_server/wsgi.c - fix a counter typeMatthias Dieter Wallnöfer2010-12-121-1/+1
|
* s4:web_server/wsgi.c - add missing Python compatibility codeMatthias Dieter Wallnöfer2010-12-121-0/+11
|
* web_server: Build as module.Jelmer Vernooij2010-11-141-4/+4
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 14 17:58:05 UTC 2010 on sn-devel-104
* s4:web_server/wsgi.c - free the "env" and "inputstream" objects on an ↵Matthias Dieter Wallnöfer2010-05-301-0/+2
| | | | "asprintf" failure
* s4:web_server/wsgi.c - provide a better out-of-memory handling for an ↵Matthias Dieter Wallnöfer2010-05-281-1/+2
| | | | "asprintf" call
* s4:web_server/wsgi.c - fix "asprintf" callMatthias Dieter Wallnöfer2010-05-281-1/+3
|
* s4:web_server: use tsocket_address functions to get the local ip and portStefan Metzmacher2010-04-281-5/+11
| | | | | metze (cherry picked from commit 9a1a00199c2603376eacfdba7e7d0d55bc64f405)
* Revert "s4:web_server: use tsocket_address functions to get the local ip and ↵Matthias Dieter Wallnöfer2010-04-271-11/+5
| | | | | | | | port" This reverts commit 9a1a00199c2603376eacfdba7e7d0d55bc64f405. This broke the build.
* s4:web_server: use tsocket_address functions to get the local ip and portStefan Metzmacher2010-04-271-5/+11
| | | | metze
* s4:Remove "Py_RETURN_NONE" compatibility codeMatthias Dieter Wallnöfer2010-02-091-4/+0
| | | | This was needed only by Python 2.3 which we no longer support.
* s4-python: we need to include Python.h firstAndrew Tridgell2009-10-231-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.
* s4:web_server: s/private/private_dataStefan Metzmacher2009-02-021-2/+2
| | | | metze
* Avoid using a utility header for Python replacements included in Samba,Jelmer Vernooij2009-01-081-1/+5
| | | | since this will not be shipped with talloc/tdb/tevent/etc.
* s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4Tim Prouty2009-01-071-1/+1
|
* py: Properly increase the reference counter of Py_None.Jelmer Vernooij2009-01-061-4/+4
|
* Fix more compiler warnings in various places.Jelmer Vernooij2008-12-231-4/+0
|
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-2/+2
|
* Support POST requests again, provide more variables in environment.Jelmer Vernooij2008-09-211-31/+75
|
* First GET request works. SWAT now displays a Hello world message.Jelmer Vernooij2008-09-211-2/+1
|
* Properly call WSGI request handler when requests come in.Jelmer Vernooij2008-09-211-28/+176
|
* Remove support for ESP in the web server.Jelmer Vernooij2008-09-211-7/+7
|
* Remove some dependencies of the web server on esp.Jelmer Vernooij2008-09-211-9/+15
|
* Add input / error stream objects in WSGI implementation.Jelmer Vernooij2008-09-211-13/+100
|
* Add more parts of the WSGI implementation.Jelmer Vernooij2008-09-211-2/+40
|
* Add initial work on WSGI support in the web server.Jelmer Vernooij2008-09-211-0/+69