Examples/modpython.py

Sat, 09 Jan 2010 19:43:36 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 09 Jan 2010 19:43:36 +0000
changeset 42
23b45a742e17
parent 0
de9c2efb9d02
permissions
-rw-r--r--

Fixed a bunch of issues including a workaround for a bug in the Python email package (s. EmailDialog.py).

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