Mercurial > libervia-backend
comparison 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 |
---|---|
389 async_callbacks=None) | 389 async_callbacks=None) |
390 def sendMessage(self, to_jid, message, subject='', mess_type="auto", options={}, profile_key="@NONE@"): | 390 def sendMessage(self, to_jid, message, subject='', mess_type="auto", options={}, profile_key="@NONE@"): |
391 return self._callback("sendMessage", unicode(to_jid), unicode(message), unicode(subject), unicode(mess_type), options, unicode(profile_key)) | 391 return self._callback("sendMessage", unicode(to_jid), unicode(message), unicode(subject), unicode(mess_type), options, unicode(profile_key)) |
392 | 392 |
393 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 393 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
394 in_signature='ssss', out_signature='', | 394 in_signature='sssis', out_signature='', |
395 async_callbacks=None) | 395 async_callbacks=None) |
396 def setParam(self, name, value, category, profile_key="@DEFAULT@"): | 396 def setParam(self, name, value, category, security_limit=-1, profile_key="@DEFAULT@"): |
397 return self._callback("setParam", unicode(name), unicode(value), unicode(category), unicode(profile_key)) | 397 return self._callback("setParam", unicode(name), unicode(value), unicode(category), security_limit, unicode(profile_key)) |
398 | 398 |
399 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 399 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
400 in_signature='ssia{ss}s', out_signature='', | 400 in_signature='ssia{ss}s', out_signature='', |
401 async_callbacks=None) | 401 async_callbacks=None) |
402 def setPresence(self, to_jid='', show='', priority=0, statuses={}, profile_key="@DEFAULT@"): | 402 def setPresence(self, to_jid='', show='', priority=0, statuses={}, profile_key="@DEFAULT@"): |