web/views/authentication.py
changeset 2887 1282dc6525c5
parent 2267 e1d2df3f1091
child 3451 6b46d73823f5
equal deleted inserted replaced
2886:0b715e732330 2887:1282dc6525c5
    16 
    16 
    17 
    17 
    18 class RepositoryAuthenticationManager(AbstractAuthenticationManager):
    18 class RepositoryAuthenticationManager(AbstractAuthenticationManager):
    19     """authenticate user associated to a request and check session validity"""
    19     """authenticate user associated to a request and check session validity"""
    20 
    20 
    21     def __init__(self):
    21     def __init__(self, vreg):
    22         self.repo = self.config.repository(self.vreg)
    22         super(RepositoryAuthenticationManager, self).__init__(vreg)
    23         self.log_queries = self.config['query-log-file']
    23         self.repo = vreg.config.repository(vreg)
       
    24         self.log_queries = vreg.config['query-log-file']
    24 
    25 
    25     def validate_session(self, req, session):
    26     def validate_session(self, req, session):
    26         """check session validity, and return eventually hijacked session
    27         """check session validity, and return eventually hijacked session
    27 
    28 
    28         :raise InvalidSession:
    29         :raise InvalidSession: