diff frontends/src/bridge/DBus.py @ 641:49587e170f53

core: added the security_limit to setParam - params with a security greater than security_limit can not be modified - special value: security_limit < 0 disable the check (all params can be modified)
author souliane <souliane@mailoo.org>
date Sat, 07 Sep 2013 02:03:17 +0200
parents 7ea6d5a86e58
children 7d6e5807504a
line wrap: on
line diff
--- a/frontends/src/bridge/DBus.py	Sun Sep 08 19:18:46 2013 +0200
+++ b/frontends/src/bridge/DBus.py	Sat Sep 07 02:03:17 2013 +0200
@@ -199,8 +199,8 @@
     def sendMessage(self, to_jid, message, subject='', mess_type="auto", options={}, profile_key="@NONE@"):
         return self.db_core_iface.sendMessage(to_jid, message, subject, mess_type, options, profile_key)
 
-    def setParam(self, name, value, category, profile_key="@DEFAULT@"):
-        return self.db_core_iface.setParam(name, value, category, profile_key)
+    def setParam(self, name, value, category, security_limit=-1, profile_key="@DEFAULT@"):
+        return self.db_core_iface.setParam(name, value, category, security_limit, profile_key)
 
     def setPresence(self, to_jid='', show='', priority=0, statuses={}, profile_key="@DEFAULT@"):
         return self.db_core_iface.setPresence(to_jid, show, priority, statuses, profile_key)