Examples/modpython.py

Tue, 01 Apr 2014 19:37:13 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 01 Apr 2014 19:37:13 +0200
branch
5_4_x
changeset 3464
20b92f08e98a
parent 0
de9c2efb9d02
permissions
-rw-r--r--

Fixed an issue with ALL lexers inheriting in the wrong order.
(grafted from 6d6e7334a787cb24cd15c935109439e9c3680da9)

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