Examples/modpython.py

Tue, 30 Dec 2014 11:50:13 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 30 Dec 2014 11:50:13 +0100
changeset 4004
51a8bbea6e9f
parent 0
de9c2efb9d02
permissions
-rw-r--r--

Corrected some copy & paste issue in the Mercurial plug-in.

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