Mercurial > libervia-backend
comparison frontends/src/bridge/DBus.py @ 1587:698d6755d62a
core, bridge (params): added asyncGetParamsValuesFromCategory (yes that's a long name!) method to retrive params names and values for a given category
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 14 Nov 2015 19:18:10 +0100 |
parents | 42285d993e68 |
children | d6d655238a93 |
comparison
equal
deleted
inserted
replaced
1586:42285d993e68 | 1587:698d6755d62a |
---|---|
171 if errback is None: | 171 if errback is None: |
172 errback = log.error | 172 errback = log.error |
173 error_handler = lambda err:errback(dbus_to_bridge_exception(err)) | 173 error_handler = lambda err:errback(dbus_to_bridge_exception(err)) |
174 return unicode(self.db_core_iface.asyncGetParamA(name, category, attribute, security_limit, profile_key, timeout=const_TIMEOUT, reply_handler=callback, error_handler=error_handler)) | 174 return unicode(self.db_core_iface.asyncGetParamA(name, category, attribute, security_limit, profile_key, timeout=const_TIMEOUT, reply_handler=callback, error_handler=error_handler)) |
175 | 175 |
176 def asyncGetParamsValuesFromCategory(self, category, security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None): | |
177 if callback is None: | |
178 error_handler = None | |
179 else: | |
180 if errback is None: | |
181 errback = log.error | |
182 error_handler = lambda err:errback(dbus_to_bridge_exception(err)) | |
183 return self.db_core_iface.asyncGetParamsValuesFromCategory(category, security_limit, profile_key, timeout=const_TIMEOUT, reply_handler=callback, error_handler=error_handler) | |
184 | |
176 def confirmationAnswer(self, id, accepted, data, profile, callback=None, errback=None): | 185 def confirmationAnswer(self, id, accepted, data, profile, callback=None, errback=None): |
177 if callback is None: | 186 if callback is None: |
178 error_handler = None | 187 error_handler = None |
179 else: | 188 else: |
180 if errback is None: | 189 if errback is None: |