web/views/authentication.py
changeset 2887 1282dc6525c5
parent 2267 e1d2df3f1091
child 3451 6b46d73823f5
--- a/web/views/authentication.py	Mon Aug 17 19:21:26 2009 +0200
+++ b/web/views/authentication.py	Mon Aug 17 19:21:45 2009 +0200
@@ -18,9 +18,10 @@
 class RepositoryAuthenticationManager(AbstractAuthenticationManager):
     """authenticate user associated to a request and check session validity"""
 
-    def __init__(self):
-        self.repo = self.config.repository(self.vreg)
-        self.log_queries = self.config['query-log-file']
+    def __init__(self, vreg):
+        super(RepositoryAuthenticationManager, self).__init__(vreg)
+        self.repo = vreg.config.repository(vreg)
+        self.log_queries = vreg.config['query-log-file']
 
     def validate_session(self, req, session):
         """check session validity, and return eventually hijacked session