comparison frontends/src/bridge/DBus.py @ 634:ca2cae6b2c6d

core: security attribute added to the parameters - getParams, getParamsUI and getParamsForCategory have a security_limit parameter to filter - parameters with security = 0 can be retrieved/modified from Libervia
author souliane <souliane@mailoo.org>
date Thu, 05 Sep 2013 20:28:44 +0200
parents d207c2186519
children 7ea6d5a86e58
comparison
equal deleted inserted replaced
633:6a29a4d574bd 634:ca2cae6b2c6d
152 return self.db_core_iface.getMenus() 152 return self.db_core_iface.getMenus()
153 153
154 def getParamA(self, name, category, attribute="value", profile_key="@DEFAULT@"): 154 def getParamA(self, name, category, attribute="value", profile_key="@DEFAULT@"):
155 return unicode(self.db_core_iface.getParamA(name, category, attribute, profile_key)) 155 return unicode(self.db_core_iface.getParamA(name, category, attribute, profile_key))
156 156
157 def getParams(self, profile_key="@DEFAULT@", callback=None, errback=None): 157 def getParams(self, security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None):
158 return unicode(self.db_core_iface.getParams(profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))) 158 return unicode(self.db_core_iface.getParams(security_limit, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])))
159 159
160 def getParamsCategories(self, ): 160 def getParamsCategories(self, ):
161 return self.db_core_iface.getParamsCategories() 161 return self.db_core_iface.getParamsCategories()
162 162
163 def getParamsForCategory(self, category, profile_key="@DEFAULT@", callback=None, errback=None): 163 def getParamsForCategory(self, category, security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None):
164 return unicode(self.db_core_iface.getParamsForCategory(category, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))) 164 return unicode(self.db_core_iface.getParamsForCategory(category, security_limit, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])))
165 165
166 def getParamsUI(self, profile_key="@DEFAULT@", callback=None, errback=None): 166 def getParamsUI(self, security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None):
167 return unicode(self.db_core_iface.getParamsUI(profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))) 167 return unicode(self.db_core_iface.getParamsUI(security_limit, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])))
168 168
169 def getPresenceStatus(self, profile_key="@DEFAULT@"): 169 def getPresenceStatus(self, profile_key="@DEFAULT@"):
170 return self.db_core_iface.getPresenceStatus(profile_key) 170 return self.db_core_iface.getPresenceStatus(profile_key)
171 171
172 def getProfileName(self, profile_key="@DEFAULT@"): 172 def getProfileName(self, profile_key="@DEFAULT@"):