[z3-checkins] r41928 - z3/deliverance/DeliveranceVHoster/trunk/dvhoster

ianb at codespeak.net ianb at codespeak.net
Fri Apr 6 00:59:12 CEST 2007


Author: ianb
Date: Fri Apr  6 00:59:11 2007
New Revision: 41928

Modified:
   z3/deliverance/DeliveranceVHoster/trunk/dvhoster/wsgiapp.py
Log:
Add the HTTPException middleware, so that pieces can raise exceptions (e.g., redirect)

Modified: z3/deliverance/DeliveranceVHoster/trunk/dvhoster/wsgiapp.py
==============================================================================
--- z3/deliverance/DeliveranceVHoster/trunk/dvhoster/wsgiapp.py	(original)
+++ z3/deliverance/DeliveranceVHoster/trunk/dvhoster/wsgiapp.py	Fri Apr  6 00:59:11 2007
@@ -5,12 +5,13 @@
 from paste.registry import RegistryManager
 from wsgifilter import proxyapp
 from paste.exceptions.errormiddleware import ErrorMiddleware
-
+from paste.httpexceptions import HTTPExceptionHandler
 from dvhoster.dispatcher import DeliveranceDispatcher
 
 def make_app(global_conf, **app_conf):
     """Create a WSGI application and return it"""
     app = DeliveranceDispatcher(app_conf)
+    app = HTTPExceptionHandler(app)
     app = RecursiveMiddleware(app)
     app = RegistryManager(app)
     debug = app_conf['debug'] = asbool(app_conf.get('debug', global_conf.get('debug')))


More information about the z3-checkins mailing list