diff pylons_app/config/middleware.py @ 177:93bd77e1f3c1

Changed auth basic handler only for mercurial request.
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 21 May 2010 20:50:03 +0200
parents 8b06c420491d
children be6d8aaddbd1
line wrap: on
line diff
--- a/pylons_app/config/middleware.py	Fri May 21 20:37:34 2010 +0200
+++ b/pylons_app/config/middleware.py	Fri May 21 20:50:03 2010 +0200
@@ -10,7 +10,6 @@
 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 
 
 def make_app(global_conf, full_stack=True, static_files=True, **app_conf):
     """Create a Pylons WSGI application and return it
@@ -45,7 +44,6 @@
     
     # 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