diff MoinMoin/wsgiapp.py @ 4151:30ac757e72de

Added HTTPException catching middleware
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sun, 08 Jun 2008 18:27:07 +0200
parents 769850545997
children ddcd459c3255
line wrap: on
line diff
--- a/MoinMoin/wsgiapp.py	Sun Jun 08 12:16:15 2008 +0200
+++ b/MoinMoin/wsgiapp.py	Sun Jun 08 18:27:07 2008 +0200
@@ -12,6 +12,7 @@
 
 from MoinMoin.web.contexts import HTTPContext
 from MoinMoin.web.utils import check_spider, handle_auth_form
+from MoinMoin.web.apps import HTTPExceptionsMiddleware
 
 from MoinMoin.Page import Page
 from MoinMoin import config, wikiutil, user, caching, error
@@ -33,7 +34,7 @@
         request.clock.stop('load_multi_cfg')
     except error.NoConfigMatchedError:
         raise NotFound('<p>No wiki configuration matching the URL found!</p>')
-    
+
     request.isSpiderAgent = check_spider(request.user_agent, request.cfg)
     
     request.action = request.form.get('action', 'show')
@@ -112,3 +113,4 @@
     return response
 
 application = responder(application)
+application = HTTPExceptionsMiddleware(application)