Examples/modpython_dbg.py@e9ee3ea73db4
Examples/modpython_dbg.py
Sun, 30 Mar 2014 15:57:50 +0200
- author
- Detlev Offenbach <detlev@die-offenbachs.de>
- date
- Sun, 30 Mar 2014 15:57:50 +0200
- changeset 3451
- e9ee3ea73db4
- parent 0
-
de9c2efb9d02
- permissions
- -rw-r--r--
Fixed an issue in the Python variant detection code causing none Python files being detected as Python files.
from mod_python import apache
apache.initDebugger('/Path/To/modpython_dbg.py')
def handler(req):
req.content_type = "text/plain"
req.send_http_header()
req.write("Hello World!\n")
return apache.OK