diff src/bridge/DBus.py @ 634:ca2cae6b2c6d

core: security attribute added to the parameters - getParams, getParamsUI and getParamsForCategory have a security_limit parameter to filter - parameters with security = 0 can be retrieved/modified from Libervia
author souliane <souliane@mailoo.org>
date Thu, 05 Sep 2013 20:28:44 +0200
parents d207c2186519
children 7ea6d5a86e58
line wrap: on
line diff
--- a/src/bridge/DBus.py	Sun Sep 08 18:05:19 2013 +0200
+++ b/src/bridge/DBus.py	Thu Sep 05 20:28:44 2013 +0200
@@ -301,10 +301,10 @@
         return self._callback("getParamA", unicode(name), unicode(category), unicode(attribute), unicode(profile_key))
 
     @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
-                         in_signature='s', out_signature='s',
+                         in_signature='is', out_signature='s',
                          async_callbacks=('callback', 'errback'))
-    def getParams(self, profile_key="@DEFAULT@", callback=None, errback=None):
-        return self._callback("getParams", unicode(profile_key), callback=callback, errback=errback)
+    def getParams(self, security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None):
+        return self._callback("getParams", security_limit, unicode(profile_key), callback=callback, errback=errback)
 
     @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
                          in_signature='', out_signature='as',
@@ -313,16 +313,16 @@
         return self._callback("getParamsCategories", )
 
     @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
-                         in_signature='ss', out_signature='s',
+                         in_signature='sis', out_signature='s',
                          async_callbacks=('callback', 'errback'))
-    def getParamsForCategory(self, category, profile_key="@DEFAULT@", callback=None, errback=None):
-        return self._callback("getParamsForCategory", unicode(category), unicode(profile_key), callback=callback, errback=errback)
+    def getParamsForCategory(self, category, security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None):
+        return self._callback("getParamsForCategory", unicode(category), security_limit, unicode(profile_key), callback=callback, errback=errback)
 
     @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
-                         in_signature='s', out_signature='s',
+                         in_signature='is', out_signature='s',
                          async_callbacks=('callback', 'errback'))
-    def getParamsUI(self, profile_key="@DEFAULT@", callback=None, errback=None):
-        return self._callback("getParamsUI", unicode(profile_key), callback=callback, errback=errback)
+    def getParamsUI(self, security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None):
+        return self._callback("getParamsUI", security_limit, unicode(profile_key), callback=callback, errback=errback)
 
     @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
                          in_signature='s', out_signature='a{sa{s(sia{ss})}}',