[repoapi] add security/hook control and system_sql
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 18 Feb 2014 17:29:34 +0100
changeset 9554 d2fd866f69a2
parent 9553 be9b12f42d76
child 9555 370a7c40864f
[repoapi] add security/hook control and system_sql Just redirect these methods to the repo-side Connection.
repoapi.py
--- a/repoapi.py	Mon Feb 17 15:22:21 2014 +0100
+++ b/repoapi.py	Tue Feb 18 17:29:34 2014 +0100
@@ -219,6 +219,16 @@
     commit = _srv_cnx_func('commit')
     rollback = _srv_cnx_func('rollback')
 
+    # security #################################################################
+
+    allow_all_hooks_but = _srv_cnx_func('allow_all_hooks_but')
+    deny_all_hooks_but = _srv_cnx_func('deny_all_hooks_but')
+    security_enabled = _srv_cnx_func('security_enabled')
+
+    # direct sql ###############################################################
+
+    system_sql = _srv_cnx_func('system_sql')
+
     # session data methods #####################################################
 
     get_shared_data = _srv_cnx_func('get_shared_data')