[client-connection] add a request() method for dbapi compatibility
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Fri, 21 Jun 2013 11:39:34 +0200
changeset 9053 862040061173
parent 9052 4cba5f2cd57b
child 9054 d7e78645dab6
[client-connection] add a request() method 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
repoapi.py
--- a/repoapi.py	Tue Jun 25 11:06:57 2013 +0200
+++ b/repoapi.py	Fri Jun 21 11:39:34 2013 +0200
@@ -287,3 +287,7 @@
         # Connection object
         with self._srv_cnx as cnx:
             return cnx.repo.system_source.undo_transaction(cnx, txuuid)
+
+    def request(self):
+        # XXX This is DBAPI compatibility method. Deprecate it ASAP.
+        return self