remove leftover pre 3.9 deprecation warnings
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 02 May 2014 17:41:11 +0200
changeset 10005 7769d0f61810
parent 10004 acad42456767
child 10006 8391bf718485
remove leftover pre 3.9 deprecation warnings
dbapi.py
server/session.py
web/data/cubicweb.ajax.js
--- a/dbapi.py	Tue Jul 22 15:42:47 2014 +0200
+++ b/dbapi.py	Fri May 02 17:41:11 2014 +0200
@@ -447,11 +447,8 @@
 class LogCursor(Cursor):
     """override the standard cursor to log executed queries"""
 
-    def execute(self, operation, parameters=None, eid_key=None, build_descr=True):
+    def execute(self, operation, parameters=None, build_descr=True):
         """override the standard cursor to log executed queries"""
-        if eid_key is not None:
-            warn('[3.8] eid_key is deprecated, you can safely remove this argument',
-                 DeprecationWarning, stacklevel=2)
         tstart, cstart = time(), clock()
         rset = Cursor.execute(self, operation, parameters, build_descr=build_descr)
         self.connection.executed_queries.append((operation, parameters,
--- a/server/session.py	Tue Jul 22 15:42:47 2014 +0200
+++ b/server/session.py	Fri May 02 17:41:11 2014 +0200
@@ -1010,15 +1010,12 @@
 
     @_with_cnx_set
     @_open_only
-    def execute(self, rql, kwargs=None, eid_key=None, build_descr=True):
+    def execute(self, rql, kwargs=None, build_descr=True):
         """db-api like method directly linked to the querier execute method.
 
         See :meth:`cubicweb.dbapi.Cursor.execute` documentation.
         """
         self._session_timestamp.touch()
-        if eid_key is not None:
-            warn('[3.8] eid_key is deprecated, you can safely remove this argument',
-                 DeprecationWarning, stacklevel=2)
         rset = self._execute(self, rql, kwargs, build_descr)
         rset.req = self
         self._session_timestamp.touch()
--- a/web/data/cubicweb.ajax.js	Tue Jul 22 15:42:47 2014 +0200
+++ b/web/data/cubicweb.ajax.js	Fri May 02 17:41:11 2014 +0200
@@ -283,8 +283,6 @@
         setFormsTarget(node);
     }
     _loadDynamicFragments(node);
-    // XXX [3.7] jQuery.one is now used instead jQuery.bind,
-    // jquery.treeview.js can be unpatched accordingly.
     jQuery(cw).trigger('server-response', [true, node]);
     jQuery(node).trigger('server-response', [true, node]);
 }