[session] drop pre-3.7 api on session
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 27 Mar 2013 14:46:55 +0100
changeset 8790 c3fc17d79e85
parent 8789 465a87e6a89a
child 8791 892fc9e0c8df
[session] drop pre-3.7 api on session Dropping of API deprecated since 3.7 decided in #2772958
server/session.py
--- a/server/session.py	Mon Mar 25 16:35:18 2013 +0100
+++ b/server/session.py	Wed Mar 27 14:46:55 2013 +0100
@@ -1269,28 +1269,6 @@
     def reset_pool(self):
         return self.free_cnxset()
 
-    @deprecated("[3.7] execute is now unsafe by default in hooks/operation. You"
-                " can also control security with the security_enabled context "
-                "manager")
-    def unsafe_execute(self, rql, kwargs=None, eid_key=None, build_descr=True,
-                       propagate=False):
-        """like .execute but with security checking disabled (this method is
-        internal to the server, it's not part of the db-api)
-        """
-        with security_enabled(self, read=False, write=False):
-            return self.execute(rql, kwargs, eid_key, build_descr)
-
-    @property
-    @deprecated("[3.7] is_super_session is deprecated, test "
-                "session.read_security and or session.write_security")
-    def is_super_session(self):
-        return not self.read_security or not self.write_security
-
-    @deprecated("[3.7] session is actual session")
-    def actual_session(self):
-        """return the original parent session if any, else self"""
-        return self
-
     # these are overridden by set_log_methods below
     # only defining here to prevent pylint from complaining
     info = warning = error = critical = exception = debug = lambda msg,*a,**kw: None