web/views/authentication.py
changeset 9032 629a8d49d6f5
parent 8694 d901c36bcfce
child 9042 6cc13a0a9145
--- a/web/views/authentication.py	Fri Nov 23 16:12:19 2012 +0100
+++ b/web/views/authentication.py	Mon Jun 24 12:00:03 2013 +0200
@@ -93,9 +93,10 @@
 class RepositoryAuthenticationManager(AbstractAuthenticationManager):
     """authenticate user associated to a request and check session validity"""
 
-    def __init__(self, vreg):
-        super(RepositoryAuthenticationManager, self).__init__(vreg)
-        self.repo = vreg.config.repository(vreg)
+    def __init__(self, repo):
+        super(RepositoryAuthenticationManager, self).__init__(repo)
+        self.repo = repo
+        vreg = repo.vreg
         self.log_queries = vreg.config['query-log-file']
         self.authinforetrievers = sorted(vreg['webauth'].possible_objects(vreg),
                                          key=lambda x: x.order)