equal
deleted
inserted
replaced
1008 |
1008 |
1009 # core method ############################################################# |
1009 # core method ############################################################# |
1010 |
1010 |
1011 @_with_cnx_set |
1011 @_with_cnx_set |
1012 @_open_only |
1012 @_open_only |
1013 def execute(self, rql, kwargs=None, eid_key=None, build_descr=True): |
1013 def execute(self, rql, kwargs=None, build_descr=True): |
1014 """db-api like method directly linked to the querier execute method. |
1014 """db-api like method directly linked to the querier execute method. |
1015 |
1015 |
1016 See :meth:`cubicweb.dbapi.Cursor.execute` documentation. |
1016 See :meth:`cubicweb.dbapi.Cursor.execute` documentation. |
1017 """ |
1017 """ |
1018 self._session_timestamp.touch() |
1018 self._session_timestamp.touch() |
1019 if eid_key is not None: |
|
1020 warn('[3.8] eid_key is deprecated, you can safely remove this argument', |
|
1021 DeprecationWarning, stacklevel=2) |
|
1022 rset = self._execute(self, rql, kwargs, build_descr) |
1019 rset = self._execute(self, rql, kwargs, build_descr) |
1023 rset.req = self |
1020 rset.req = self |
1024 self._session_timestamp.touch() |
1021 self._session_timestamp.touch() |
1025 return rset |
1022 return rset |
1026 |
1023 |