[z3-checkins] r30032 - z3/deliverance/branches/namespaced

paul at codespeak.net paul at codespeak.net
Fri Jul 14 11:10:56 CEST 2006


Author: paul
Date: Fri Jul 14 11:10:41 2006
New Revision: 30032

Removed:
   z3/deliverance/branches/namespaced/modpython.conf
   z3/deliverance/branches/namespaced/modpython.py
Log:
Switched to mod_python filter instead of handler, improved the README, removed any mentions of the previous content map stuff.

Deleted: /z3/deliverance/branches/namespaced/modpython.conf
==============================================================================
--- /z3/deliverance/branches/namespaced/modpython.conf	Fri Jul 14 11:10:41 2006
+++ (empty file)
@@ -1,12 +0,0 @@
-# This module can be pointed to from your main Apache 
-# configuration file to apply a theme to certain parts of your
-# URL space
-
-LoadModule python_module modules/mod_python.so
-
-<Directory /Users/paul/sandboxes/z3/deliverance/branches/namespaced>
-   AddHandler mod_python .py
-   PythonHandler modpython
-   PythonDebug On
-</Directory>
-

Deleted: /z3/deliverance/branches/namespaced/modpython.py
==============================================================================
--- /z3/deliverance/branches/namespaced/modpython.py	Fri Jul 14 11:10:41 2006
+++ (empty file)
@@ -1,25 +0,0 @@
-"""
-Deliverance publisher for mod_python
-
-This module gets imported by mod_python during its startup.  Thus, the 
-appmap instance becomes a global, computed only once.  If you need to 
-recompute the theme, for example, restart the Apache.
-"""
-
-from mod_python import apache
-from deliverance import AppMap
-appmap = AppMap()
-
-def handler(req):
-    """Basic handler applying to all mime types it is registered for"""
-
-    # Get the path, strip off leading slash, and convert to a 
-    # dotted notation for xml:id compatibility
-    path_info = req.path_info[1:]
-    dotted_path = path_info.replace("/", ".")
-    
-    response = appmap.publish(dotted_path)
-    req.content_type = "text/html"
-    req.write(response)
-
-    return apache.OK


More information about the z3-checkins mailing list