Mercurial > kallithea
comparison 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 |
comparison
equal
deleted
inserted
replaced
2005:ab0e122b38a7 | 2031:82a88013a3fd |
---|---|
49 # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares) | 49 # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares) |
50 if asbool(config['pdebug']): | 50 if asbool(config['pdebug']): |
51 from rhodecode.lib.profiler import ProfilingMiddleware | 51 from rhodecode.lib.profiler import ProfilingMiddleware |
52 app = ProfilingMiddleware(app) | 52 app = ProfilingMiddleware(app) |
53 | 53 |
54 # we want our low level middleware to get to the request ASAP. We don't | 54 if asbool(full_stack): |
55 # need any pylons stack middleware in them | |
56 app = SimpleHg(app, config) | |
57 app = SimpleGit(app, config) | |
58 | 55 |
59 if asbool(full_stack): | |
60 # Handle Python exceptions | 56 # Handle Python exceptions |
61 app = ErrorHandler(app, global_conf, **config['pylons.errorware']) | 57 app = ErrorHandler(app, global_conf, **config['pylons.errorware']) |
58 | |
59 # we want our low level middleware to get to the request ASAP. We don't | |
60 # need any pylons stack middleware in them | |
61 app = SimpleHg(app, config) | |
62 app = SimpleGit(app, config) | |
62 | 63 |
63 # Display error documents for 401, 403, 404 status codes (and | 64 # Display error documents for 401, 403, 404 status codes (and |
64 # 500 when debug is disabled) | 65 # 500 when debug is disabled) |
65 if asbool(config['debug']): | 66 if asbool(config['debug']): |
66 app = StatusCodeRedirect(app) | 67 app = StatusCodeRedirect(app) |