Examples/modpython_dbg.py

Tue, 05 Jan 2021 15:14:40 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 05 Jan 2021 15:14:40 +0100
changeset 7958
a70ebfad3d0e
parent 0
de9c2efb9d02
permissions
-rw-r--r--

DebugUI: some fine tuning of the client exit notification.

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