[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
--- 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