[dbapi] explicitly use the DBAPI version of CubicwebRequestBase
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 25 Jun 2013 10:45:44 +0200
changeset 9067 262d7874c6c7
parent 9066 685ca11d9870
child 9068 86dcc29740e0
[dbapi] explicitly use the DBAPI version of CubicwebRequestBase As we plan to use a ConnectionCubicwebRequestBase by default we better have the dbapi explicitly asking for a DBAPI implementation.
dbapi.py
--- a/dbapi.py	Mon Jun 24 18:33:41 2013 +0200
+++ b/dbapi.py	Tue Jun 25 10:45:44 2013 +0200
@@ -603,8 +603,8 @@
 
     def request(self):
         if self._web_request:
-            from cubicweb.web.request import CubicWebRequestBase
-            req = CubicWebRequestBase(self.vreg, False)
+            from cubicweb.web.request import DBAPICubicWebRequestBase
+            req = DBAPICubicWebRequestBase(self.vreg, False)
             req.get_header = lambda x, default=None: default
             req.set_session = lambda session: DBAPIRequest.set_session(
                 req, session)