[repo] Use a connection instead of a session for repo.get_versions()
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 29 Jan 2014 15:56:44 +0100
changeset 9505 53225f66e7ca
parent 9504 71a11bca251d
child 9506 7f6883783969
[repo] Use a connection instead of a session for repo.get_versions()
server/repository.py
--- a/server/repository.py	Thu Jan 30 15:52:22 2014 +0100
+++ b/server/repository.py	Wed Jan 29 15:56:44 2014 +0100
@@ -559,8 +559,8 @@
         """
         from logilab.common.changelog import Version
         vcconf = {}
-        with self.internal_session() as session:
-            for pk, version in session.execute(
+        with self.internal_cnx() as cnx:
+            for pk, version in cnx.execute(
                 'Any K,V WHERE P is CWProperty, P value V, P pkey K, '
                 'P pkey ~="system.version.%"', build_descr=False):
                 cube = pk.split('.')[-1]