server/sources/pyrorql.py
changeset 6946 e350771c23a3
parent 6945 28bf94d062a9
child 6957 ffda12be2e9f
--- a/server/sources/pyrorql.py	Mon Feb 07 18:19:39 2011 +0100
+++ b/server/sources/pyrorql.py	Mon Feb 07 18:19:40 2011 +0100
@@ -111,8 +111,8 @@
           'group': 'pyro-source', 'level': 2,
           }),
         ('synchronization-interval',
-         {'type' : 'int',
-          'default': 5*60,
+         {'type' : 'time',
+          'default': '5min',
           'help': 'interval between synchronization with the external \
 repository (default to 5 minutes).',
           'group': 'pyro-source', 'level': 2,
@@ -172,7 +172,7 @@
         """method called by the repository once ready to handle request"""
         self.load_mapping(session)
         if activated:
-            interval = int(self.config.get('synchronization-interval', 5*60))
+            interval = self.config['synchronization-interval']
             self.repo.looping_task(interval, self.synchronize)
             self.repo.looping_task(self._query_cache.ttl.seconds/10,
                                    self._query_cache.clear_expired)