[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.
--- 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):