server/sources/ldapuser.py
branchstable
changeset 1954 9b20f3504af8
parent 1952 8e19c813750d
child 1977 606923dff11b
equal deleted inserted replaced
1953:8834399f076e 1954:9b20f3504af8
   151         self._query_cache = TimedCache(2*60)
   151         self._query_cache = TimedCache(2*60)
   152 
   152 
   153     def init(self):
   153     def init(self):
   154         """method called by the repository once ready to handle request"""
   154         """method called by the repository once ready to handle request"""
   155         self.repo.looping_task(self._interval, self.synchronize)
   155         self.repo.looping_task(self._interval, self.synchronize)
   156         self.repo.looping_task(self._query_cache.ttl.seconds/10, self._query_cache.clear_expired)
   156         self.repo.looping_task(self._query_cache.ttl.seconds/10,
       
   157                                self._query_cache.clear_expired)
   157 
   158 
   158     def synchronize(self):
   159     def synchronize(self):
   159         """synchronize content known by this repository with content in the
   160         """synchronize content known by this repository with content in the
   160         external repository
   161         external repository
   161         """
   162         """