[z3-checkins] r34815 - in z3/deliverance/DeliveranceDemo/trunk: . ddemo

ianb at codespeak.net ianb at codespeak.net
Mon Nov 20 23:25:47 CET 2006


Author: ianb
Date: Mon Nov 20 23:25:44 2006
New Revision: 34815

Modified:
   z3/deliverance/DeliveranceDemo/trunk/ddemo/wsgiapp.py
   z3/deliverance/DeliveranceDemo/trunk/development.ini
Log:
Option to debug the request/response headers

Modified: z3/deliverance/DeliveranceDemo/trunk/ddemo/wsgiapp.py
==============================================================================
--- z3/deliverance/DeliveranceDemo/trunk/ddemo/wsgiapp.py	(original)
+++ z3/deliverance/DeliveranceDemo/trunk/ddemo/wsgiapp.py	Mon Nov 20 23:25:44 2006
@@ -7,6 +7,7 @@
 from paste.deploy.config import ConfigMiddleware
 from paste.deploy.converters import asbool
 from paste.recursive import RecursiveMiddleware
+from wsgifilter import proxyapp
 
 import pylons.wsgiapp
 import pylons.config
@@ -59,6 +60,8 @@
     app = Cascade([static_app, javascripts_app, app])
     app = DeliveranceDispatcher(app, app_conf)
     app = RecursiveMiddleware(app)
+    if asbool(app_conf.get('debug_headers')):
+        app = proxyapp.DebugHeaders(app)
     if (asbool(full_stack)
         and asbool(app_conf.get('debug', global_conf.get('debug')))):
         from paste.evalexception import EvalException

Modified: z3/deliverance/DeliveranceDemo/trunk/development.ini
==============================================================================
--- z3/deliverance/DeliveranceDemo/trunk/development.ini	(original)
+++ z3/deliverance/DeliveranceDemo/trunk/development.ini	Mon Nov 20 23:25:44 2006
@@ -21,6 +21,7 @@
 data_dir = %(here)s/data
 session_key = ddemo
 session_secret = somesecret
+debug_headers = true
 
 # If you'd like to fine-tune the individual locations of the cache data dirs
 # for Myghty, the Cache data, or the Session saves, un-comment the desired


More information about the z3-checkins mailing list