comparison frontends/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 d731ae066158
comparison
equal deleted inserted replaced
655:56f8a9c99194 656:7d6e5807504a
101 return self.db_core_iface.asyncConnect(profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])) 101 return self.db_core_iface.asyncConnect(profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))
102 102
103 def asyncCreateProfile(self, profile, callback=None, errback=None): 103 def asyncCreateProfile(self, profile, callback=None, errback=None):
104 return self.db_core_iface.asyncCreateProfile(profile, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])) 104 return self.db_core_iface.asyncCreateProfile(profile, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))
105 105
106 def asyncGetParamA(self, name, category, attribute="value", profile_key="@DEFAULT@", callback=None, errback=None): 106 def asyncGetParamA(self, name, category, attribute="value", security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None):
107 return unicode(self.db_core_iface.asyncGetParamA(name, category, attribute, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))) 107 return unicode(self.db_core_iface.asyncGetParamA(name, category, attribute, security_limit, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])))
108 108
109 def callMenu(self, category, name, menu_type, profile_key): 109 def callMenu(self, category, name, menu_type, profile_key):
110 return unicode(self.db_core_iface.callMenu(category, name, menu_type, profile_key)) 110 return unicode(self.db_core_iface.callMenu(category, name, menu_type, profile_key))
111 111
112 def confirmationAnswer(self, id, accepted, data, profile): 112 def confirmationAnswer(self, id, accepted, data, profile):