Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
640:8211b462af6b | 641:49587e170f53 |
---|---|
197 return unicode(self.db_core_iface.registerNewAccount(login, password, email, host, port)) | 197 return unicode(self.db_core_iface.registerNewAccount(login, password, email, host, port)) |
198 | 198 |
199 def sendMessage(self, to_jid, message, subject='', mess_type="auto", options={}, profile_key="@NONE@"): | 199 def sendMessage(self, to_jid, message, subject='', mess_type="auto", options={}, profile_key="@NONE@"): |
200 return self.db_core_iface.sendMessage(to_jid, message, subject, mess_type, options, profile_key) | 200 return self.db_core_iface.sendMessage(to_jid, message, subject, mess_type, options, profile_key) |
201 | 201 |
202 def setParam(self, name, value, category, profile_key="@DEFAULT@"): | 202 def setParam(self, name, value, category, security_limit=-1, profile_key="@DEFAULT@"): |
203 return self.db_core_iface.setParam(name, value, category, profile_key) | 203 return self.db_core_iface.setParam(name, value, category, security_limit, profile_key) |
204 | 204 |
205 def setPresence(self, to_jid='', show='', priority=0, statuses={}, profile_key="@DEFAULT@"): | 205 def setPresence(self, to_jid='', show='', priority=0, statuses={}, profile_key="@DEFAULT@"): |
206 return self.db_core_iface.setPresence(to_jid, show, priority, statuses, profile_key) | 206 return self.db_core_iface.setPresence(to_jid, show, priority, statuses, profile_key) |
207 | 207 |
208 def subscription(self, sub_type, entity, profile_key="@DEFAULT@"): | 208 def subscription(self, sub_type, entity, profile_key="@DEFAULT@"): |