server/repository.py
changeset 9505 53225f66e7ca
parent 9496 e699fbcc9a61
child 9506 7f6883783969
equal deleted inserted replaced
9504:71a11bca251d 9505:53225f66e7ca
   557 
   557 
   558         This is a public method, not requiring a session id.
   558         This is a public method, not requiring a session id.
   559         """
   559         """
   560         from logilab.common.changelog import Version
   560         from logilab.common.changelog import Version
   561         vcconf = {}
   561         vcconf = {}
   562         with self.internal_session() as session:
   562         with self.internal_cnx() as cnx:
   563             for pk, version in session.execute(
   563             for pk, version in cnx.execute(
   564                 'Any K,V WHERE P is CWProperty, P value V, P pkey K, '
   564                 'Any K,V WHERE P is CWProperty, P value V, P pkey K, '
   565                 'P pkey ~="system.version.%"', build_descr=False):
   565                 'P pkey ~="system.version.%"', build_descr=False):
   566                 cube = pk.split('.')[-1]
   566                 cube = pk.split('.')[-1]
   567                 # XXX cubicweb migration
   567                 # XXX cubicweb migration
   568                 if cube in CW_MIGRATION_MAP:
   568                 if cube in CW_MIGRATION_MAP: