comparison pylons_app/config/middleware.py @ 216:c8162373f214

Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 24 May 2010 22:20:21 +0200
parents 8bdec09436cb
children 183c06406127
comparison
equal deleted inserted replaced
215:70f645fa97cc 216:c8162373f214
56 if asbool(config['debug']): 56 if asbool(config['debug']):
57 app = StatusCodeRedirect(app) 57 app = StatusCodeRedirect(app)
58 else: 58 else:
59 app = StatusCodeRedirect(app, [400, 401, 403, 404, 500]) 59 app = StatusCodeRedirect(app, [400, 401, 403, 404, 500])
60 60
61 #enable https redirets based on HTTP_X_URL_SCHEME set by proxy
61 app = HttpsFixup(app) 62 app = HttpsFixup(app)
63
62 # Establish the Registry for this application 64 # Establish the Registry for this application
63 app = RegistryManager(app) 65 app = RegistryManager(app)
64 66
65 if asbool(static_files): 67 if asbool(static_files):
66 # Serve static files 68 # Serve static files