# HG changeset patch # User Julien Cristau # Date 1391007404 -3600 # Node ID 53225f66e7ca8f8a2ed67fda364eb8e79abffcdc # Parent 71a11bca251d2f17d7374cdec3d9221e0f6abb8b [repo] Use a connection instead of a session for repo.get_versions() diff -r 71a11bca251d -r 53225f66e7ca 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]