# HG changeset patch # User Pierre-Yves David # Date 1371809578 -7200 # Node ID d7e78645dab61c3de81913a9a1dbf70f11dfcc2e # Parent 862040061173011ac7d0106b8e72dbb51ffc27e0 [client-connection] add a cursor() 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 diff -r 862040061173 -r d7e78645dab6 repoapi.py --- a/repoapi.py Fri Jun 21 11:39:34 2013 +0200 +++ b/repoapi.py Fri Jun 21 12:12:58 2013 +0200 @@ -291,3 +291,7 @@ def request(self): # XXX This is DBAPI compatibility method. Deprecate it ASAP. return self + + def cursor(self): + # XXX This is DBAPI compatibility method. Deprecate it ASAP. + return self