[web/request] add security_enabled method
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 02 Oct 2014 16:34:38 +0200
changeset 10079 962324edd6de
parent 10078 5eeffcfde1ba
child 10080 bc7c3b0f439b
[web/request] add security_enabled method Just forward to the underlying repo connection. This can be useful in the ORM when dealing with a "code-only" attribute, i.e. something that shouldn't be directly user-visible but must be accessible from a web request.
web/request.py
--- a/web/request.py	Tue Nov 18 18:20:08 2014 +0100
+++ b/web/request.py	Thu Oct 02 16:34:38 2014 +0200
@@ -1075,6 +1075,10 @@
     set_shared_data = _cnx_func('set_shared_data')
     describe = _cnx_func('describe') # deprecated XXX
 
+    # security #################################################################
+
+    security_enabled = _cnx_func('security_enabled')
+
     # server-side service call #################################################
 
     def call_service(self, regid, **kwargs):