Examples/modpython_dbg.py

Thu, 10 Apr 2014 23:02:20 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Thu, 10 Apr 2014 23:02:20 +0200
changeset 3497
7f51ab29a1a2
parent 0
de9c2efb9d02
permissions
-rw-r--r--

updated coverage to 3.7.1
(grafted from fac17a82b4314c14a5eea4fdc158059fa0540566)

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