# HG changeset patch # User Pierre-Yves David # Date 1371815353 -7200 # Node ID e777be2c5007a02247a2e3ba29b2c029be14bf71 # Parent 2567b7d04e49b49f01eb39f59f3521b0d940b80f [client-connection] add a connection property for dbapi compatibility To ease transition from dbapi to repoapi we need the ClientConnection to be as compatible as possible with the dbapi. Adding this method goes in this direction. It'll get deprecated in the deprecation wave that will conclude the repoapi refactoring. related to #2503918 diff -r 2567b7d04e49 -r e777be2c5007 repoapi.py --- a/repoapi.py Fri Jun 21 13:42:19 2013 +0200 +++ b/repoapi.py Fri Jun 21 13:49:13 2013 +0200 @@ -300,3 +300,8 @@ def sessionid(self): # XXX This is DBAPI compatibility property. Deprecate it ASAP. return self._session.id + + @property + def connection(self): + # XXX This is DBAPI compatibility property. Deprecate it ASAP. + return self