diff pylons_app/config/middleware.py @ 101:8b06c420491d

statics moved to pylons.
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 25 Apr 2010 01:25:54 +0200
parents e47d1db5ef20
children 93bd77e1f3c1
line wrap: on
line diff
--- a/pylons_app/config/middleware.py	Sun Apr 25 01:20:56 2010 +0200
+++ b/pylons_app/config/middleware.py	Sun Apr 25 01:25:54 2010 +0200
@@ -8,6 +8,7 @@
 from pylons.wsgiapp import PylonsApp
 from routes.middleware import RoutesMiddleware
 from paste.auth.basic import AuthBasicHandler
+from pylons_app.lib.simplehg import SimpleHg
 from pylons_app.config.environment import load_environment
 from pylons_app.lib.auth import authfunc 
 
@@ -37,12 +38,14 @@
     # The Pylons WSGI app
     app = PylonsApp(config=config)
 
-    # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares)
-
+    
     # Routing/Session/Cache Middleware
     app = RoutesMiddleware(app, config['routes.map'])
     app = SessionMiddleware(app, config)
-    app = AuthBasicHandler(app, config['repos_name'] + ' mercurial repository', authfunc)
+    
+    # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares)    
+    app = SimpleHg(app, config)
+    app = AuthBasicHandler(app, config['repos_name'] + ' mercurial repository', authfunc)    
     
     if asbool(full_stack):
         # Handle Python exceptions