server/sources/pyrorql.py
changeset 6632 78878f5a8166
parent 6626 5c20a005bddc
child 6652 592c88c8f018
--- a/server/sources/pyrorql.py	Mon Oct 25 17:15:46 2010 +0200
+++ b/server/sources/pyrorql.py	Mon Oct 25 17:15:51 2010 +0200
@@ -139,7 +139,7 @@
           'default': None,
           'help': 'Pyro name server\'s group where the repository will be \
 registered. If not set, default to the value from all_in_one.conf.',
-          'group': 'pyro-source', 'level': 1,
+          'group': 'pyro-source', 'level': 2,
           }),
         ('synchronization-interval',
          {'type' : 'int',
@@ -195,10 +195,10 @@
 
     def last_update_time(self):
         pkey = u'sources.%s.latest-update-time' % self.uri
-        rql = 'Any V WHERE X is CWProperty, X value V, X pkey %(k)s'
         session = self.repo.internal_session()
         try:
-            rset = session.execute(rql, {'k': pkey})
+            rset = session.execute('Any V WHERE X is CWProperty, X value V, X pkey %(k)s',
+                                   {'k': pkey})
             if not rset:
                 # insert it
                 session.execute('INSERT CWProperty X: X pkey %(k)s, X value %(v)s',