Examples/modpython.py

Sat, 03 Feb 2018 10:45:52 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 03 Feb 2018 10:45:52 +0100
branch
maintenance
changeset 6103
55bb39334322
parent 0
de9c2efb9d02
permissions
-rw-r--r--

Fixed a situation in the tabview view manager that could cause a traceback.
(grafted from a5b9f6a38fafcd549914bc8d8cdc1b4e44602b01)

from mod_python import apache

def handler(req):
    req.content_type = "text/plain"
    req.send_http_header()
    req.write("Hello World!\n")

    return apache.OK

eric ide

mercurial