Mercurial > kallithea
diff rhodecode/config/middleware.py @ 2031:82a88013a3fd
merge 1.3 into stable
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 26 Feb 2012 17:25:09 +0200 |
parents | 752b0a7b7679 87f0800abc7b |
children | a5f0bc867edc |
line wrap: on
line diff
--- a/rhodecode/config/middleware.py Sun Feb 19 20:21:14 2012 +0200 +++ b/rhodecode/config/middleware.py Sun Feb 26 17:25:09 2012 +0200 @@ -51,15 +51,16 @@ from rhodecode.lib.profiler import ProfilingMiddleware app = ProfilingMiddleware(app) - # we want our low level middleware to get to the request ASAP. We don't - # need any pylons stack middleware in them - app = SimpleHg(app, config) - app = SimpleGit(app, config) + if asbool(full_stack): - if asbool(full_stack): # Handle Python exceptions app = ErrorHandler(app, global_conf, **config['pylons.errorware']) + # we want our low level middleware to get to the request ASAP. We don't + # need any pylons stack middleware in them + app = SimpleHg(app, config) + app = SimpleGit(app, config) + # Display error documents for 401, 403, 404 status codes (and # 500 when debug is disabled) if asbool(config['debug']):