Mercurial > kallithea
comparison pylons_app/config/middleware.py @ 21:fac1f62a1d71
Wrapped into mako templates,
changed templates info. Added session and cache middleware.
author | Marcin Kuzminski |
---|---|
date | Sun, 28 Feb 2010 02:24:44 +0100 |
parents | 436bee78d81a |
children | 2963f2894a7a |
comparison
equal
deleted
inserted
replaced
20:bbaab7501c1a | 21:fac1f62a1d71 |
---|---|
39 | 39 |
40 # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares) | 40 # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares) |
41 | 41 |
42 # Routing/Session/Cache Middleware | 42 # Routing/Session/Cache Middleware |
43 app = RoutesMiddleware(app, config['routes.map']) | 43 app = RoutesMiddleware(app, config['routes.map']) |
44 app = SessionMiddleware(app, config) | |
45 app = CacheMiddleware(app, config) | |
44 | 46 |
45 if asbool(full_stack): | 47 if asbool(full_stack): |
46 # Handle Python exceptions | 48 # Handle Python exceptions |
47 app = ErrorHandler(app, global_conf, **config['pylons.errorware']) | 49 app = ErrorHandler(app, global_conf, **config['pylons.errorware']) |
48 | 50 |