Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move python modules from source4/scripting/python/ to python/. | Jelmer Vernooij | 2013-03-02 | 1 | -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 Vernooij | 2012-12-05 | 1 | -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 Vernooij | 2012-12-05 | 1 | -9/+52 |
| | | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org> | ||||
* | web_server: the web server is not multi-process, indicate so in WSGI. | Jelmer Vernooij | 2012-11-22 | 1 | -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 Vernooij | 2012-11-22 | 1 | -29/+81 |
| | | | | Reviewed-by: Matthieu Patou <mat@matws.net> | ||||
* | web_server: Properly set SCRIPT_NAME and PATH_INFO. | Jelmer Vernooij | 2012-11-22 | 1 | -2/+5 |
| | | | | Reviewed-by: Matthieu Patou <mat@matws.net> | ||||
* | web_server: Create a string object for SERVER_PORT variable. | Jelmer Vernooij | 2012-11-22 | 1 | -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 Vernooij | 2012-11-22 | 1 | -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.path | Andrew Bartlett | 2011-02-07 | 1 | -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 Vernooij | 2011-01-17 | 1 | -5/+8 |
| | |||||
* | s4-python: Only set BASETYPE flag if subclassing is supported. | Jelmer Vernooij | 2011-01-01 | 1 | -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öfer | 2010-12-12 | 1 | -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 includes | Matthias Dieter Wallnöfer | 2010-12-12 | 1 | -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 type | Matthias Dieter Wallnöfer | 2010-12-12 | 1 | -1/+1 |
| | |||||
* | s4:web_server/wsgi.c - add missing Python compatibility code | Matthias Dieter Wallnöfer | 2010-12-12 | 1 | -0/+11 |
| | |||||
* | web_server: Build as module. | Jelmer Vernooij | 2010-11-14 | 1 | -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öfer | 2010-05-30 | 1 | -0/+2 |
| | | | | "asprintf" failure | ||||
* | s4:web_server/wsgi.c - provide a better out-of-memory handling for an ↵ | Matthias Dieter Wallnöfer | 2010-05-28 | 1 | -1/+2 |
| | | | | "asprintf" call | ||||
* | s4:web_server/wsgi.c - fix "asprintf" call | Matthias Dieter Wallnöfer | 2010-05-28 | 1 | -1/+3 |
| | |||||
* | s4:web_server: use tsocket_address functions to get the local ip and port | Stefan Metzmacher | 2010-04-28 | 1 | -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öfer | 2010-04-27 | 1 | -11/+5 |
| | | | | | | | | port" This reverts commit 9a1a00199c2603376eacfdba7e7d0d55bc64f405. This broke the build. | ||||
* | s4:web_server: use tsocket_address functions to get the local ip and port | Stefan Metzmacher | 2010-04-27 | 1 | -5/+11 |
| | | | | metze | ||||
* | s4:Remove "Py_RETURN_NONE" compatibility code | Matthias Dieter Wallnöfer | 2010-02-09 | 1 | -4/+0 |
| | | | | This was needed only by Python 2.3 which we no longer support. | ||||
* | s4-python: we need to include Python.h first | Andrew Tridgell | 2009-10-23 | 1 | -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_data | Stefan Metzmacher | 2009-02-02 | 1 | -2/+2 |
| | | | | metze | ||||
* | Avoid using a utility header for Python replacements included in Samba, | Jelmer Vernooij | 2009-01-08 | 1 | -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.4 | Tim Prouty | 2009-01-07 | 1 | -1/+1 |
| | |||||
* | py: Properly increase the reference counter of Py_None. | Jelmer Vernooij | 2009-01-06 | 1 | -4/+4 |
| | |||||
* | Fix more compiler warnings in various places. | Jelmer Vernooij | 2008-12-23 | 1 | -4/+0 |
| | |||||
* | Fix include paths to new location of libutil. | Jelmer Vernooij | 2008-10-11 | 1 | -2/+2 |
| | |||||
* | Support POST requests again, provide more variables in environment. | Jelmer Vernooij | 2008-09-21 | 1 | -31/+75 |
| | |||||
* | First GET request works. SWAT now displays a Hello world message. | Jelmer Vernooij | 2008-09-21 | 1 | -2/+1 |
| | |||||
* | Properly call WSGI request handler when requests come in. | Jelmer Vernooij | 2008-09-21 | 1 | -28/+176 |
| | |||||
* | Remove support for ESP in the web server. | Jelmer Vernooij | 2008-09-21 | 1 | -7/+7 |
| | |||||
* | Remove some dependencies of the web server on esp. | Jelmer Vernooij | 2008-09-21 | 1 | -9/+15 |
| | |||||
* | Add input / error stream objects in WSGI implementation. | Jelmer Vernooij | 2008-09-21 | 1 | -13/+100 |
| | |||||
* | Add more parts of the WSGI implementation. | Jelmer Vernooij | 2008-09-21 | 1 | -2/+40 |
| | |||||
* | Add initial work on WSGI support in the web server. | Jelmer Vernooij | 2008-09-21 | 1 | -0/+69 |