Examples/modpython_dbg.py

Tue, 17 Sep 2019 19:43:17 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 17 Sep 2019 19:43:17 +0200
changeset 7245
b47179fbb9d8
parent 0
de9c2efb9d02
permissions
-rw-r--r--

Code Style Checker (Miscellaneous Checker)
-- added more comprehension checks
-- added checks for insecure use of sys.version and sys.version_info

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

eric ide

mercurial