[cnxset] add backwards compat for cnxset.source_cnxs
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 22 Jan 2014 15:35:13 +0100
changeset 9464 6f4f710aef83
parent 9463 d62e13eba033
child 9465 86d4b41ae339
[cnxset] add backwards compat for cnxset.source_cnxs It's used at least in a vcsfile migration script.
server/pool.py
--- a/server/pool.py	Wed Jan 22 15:49:32 2014 +0100
+++ b/server/pool.py	Wed Jan 22 15:35:13 2014 +0100
@@ -112,6 +112,11 @@
         assert uid == 'system'
         return self.cnx
 
+    @property
+    @deprecated('[3.19] use .cnx instead')
+    def source_cnxs(self):
+        return {'system': (self._source, self.cnx)}
+
 
 from cubicweb.server.hook import Operation, LateOperation, SingleLastOperation
 from logilab.common.deprecation import class_moved, class_renamed