Examples/modpython.py

changeset 0
de9c2efb9d02
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Examples/modpython.py	Mon Dec 28 16:03:33 2009 +0000
@@ -0,0 +1,8 @@
+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