nicer warning stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 01 Apr 2010 11:48:18 +0200
branchstable
changeset 5130 929984f017e6
parent 5129 839aadaf42d3
child 5131 88b5ca8da928
nicer warning
server/session.py
--- a/server/session.py	Thu Apr 01 10:36:56 2010 +0200
+++ b/server/session.py	Thu Apr 01 11:48:18 2010 +0200
@@ -896,7 +896,8 @@
     # deprecated ###############################################################
 
     @deprecated("[3.7] execute is now unsafe by default in hooks/operation. You"
-                " can also control security with session.[read|write]_security")
+                " 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