Mercurial > libervia-backend
comparison src/bridge/DBus.py @ 656:7d6e5807504a
bridge, memory: added the parameter security_limit to asyncGetParamA so it can be used from libervia. refactorization in memory.py are related to that.
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 02 Oct 2013 20:25:19 +0200 |
parents | 49587e170f53 |
children | ffb716804580 |
comparison
equal
deleted
inserted
replaced
655:56f8a9c99194 | 656:7d6e5807504a |
---|---|
197 async_callbacks=('callback', 'errback')) | 197 async_callbacks=('callback', 'errback')) |
198 def asyncCreateProfile(self, profile, callback=None, errback=None): | 198 def asyncCreateProfile(self, profile, callback=None, errback=None): |
199 return self._callback("asyncCreateProfile", unicode(profile), callback=callback, errback=errback) | 199 return self._callback("asyncCreateProfile", unicode(profile), callback=callback, errback=errback) |
200 | 200 |
201 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 201 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
202 in_signature='ssss', out_signature='s', | 202 in_signature='sssis', out_signature='s', |
203 async_callbacks=('callback', 'errback')) | 203 async_callbacks=('callback', 'errback')) |
204 def asyncGetParamA(self, name, category, attribute="value", profile_key="@DEFAULT@", callback=None, errback=None): | 204 def asyncGetParamA(self, name, category, attribute="value", security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None): |
205 return self._callback("asyncGetParamA", unicode(name), unicode(category), unicode(attribute), unicode(profile_key), callback=callback, errback=errback) | 205 return self._callback("asyncGetParamA", unicode(name), unicode(category), unicode(attribute), security_limit, unicode(profile_key), callback=callback, errback=errback) |
206 | 206 |
207 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 207 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
208 in_signature='ssss', out_signature='s', | 208 in_signature='ssss', out_signature='s', |
209 async_callbacks=None) | 209 async_callbacks=None) |
210 def callMenu(self, category, name, menu_type, profile_key): | 210 def callMenu(self, category, name, menu_type, profile_key): |