# HG changeset patch # User Julien Cristau # Date 1412260478 -7200 # Node ID 962324edd6de859da1094aa14f98274cb8ea5ba6 # Parent 5eeffcfde1ba91bbb37e1e527fa9a0e0dada114a [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. diff -r 5eeffcfde1ba -r 962324edd6de 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):