Mercurial > libervia-backend
comparison sat_frontends/bridge/dbus_bridge.py @ 2595:973d4551ffae
core: added local_device argument to discoFindByFeatures
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 25 May 2018 10:52:01 +0200 |
parents | 26edcf3a30eb |
children | 779351da2c13 |
comparison
equal
deleted
inserted
replaced
2594:59ba387c17ea | 2595:973d4551ffae |
---|---|
207 if errback is None: | 207 if errback is None: |
208 errback = log.error | 208 errback = log.error |
209 error_handler = lambda err:errback(dbus_to_bridge_exception(err)) | 209 error_handler = lambda err:errback(dbus_to_bridge_exception(err)) |
210 return self.db_core_iface.delContact(entity_jid, profile_key, timeout=const_TIMEOUT, reply_handler=callback, error_handler=error_handler) | 210 return self.db_core_iface.delContact(entity_jid, profile_key, timeout=const_TIMEOUT, reply_handler=callback, error_handler=error_handler) |
211 | 211 |
212 def discoFindByFeatures(self, namespaces, identities, bare_jid=False, service=True, roster=True, own_jid=True, profile_key=u"@DEFAULT@", callback=None, errback=None): | 212 def discoFindByFeatures(self, namespaces, identities, bare_jid=False, service=True, roster=True, own_jid=True, local_device=False, profile_key=u"@DEFAULT@", callback=None, errback=None): |
213 if callback is None: | 213 if callback is None: |
214 error_handler = None | 214 error_handler = None |
215 else: | 215 else: |
216 if errback is None: | 216 if errback is None: |
217 errback = log.error | 217 errback = log.error |
218 error_handler = lambda err:errback(dbus_to_bridge_exception(err)) | 218 error_handler = lambda err:errback(dbus_to_bridge_exception(err)) |
219 return self.db_core_iface.discoFindByFeatures(namespaces, identities, bare_jid, service, roster, own_jid, profile_key, timeout=const_TIMEOUT, reply_handler=callback, error_handler=error_handler) | 219 return self.db_core_iface.discoFindByFeatures(namespaces, identities, bare_jid, service, roster, own_jid, local_device, profile_key, timeout=const_TIMEOUT, reply_handler=callback, error_handler=error_handler) |
220 | 220 |
221 def discoInfos(self, entity_jid, node=u'', use_cache=True, profile_key=u"@DEFAULT@", callback=None, errback=None): | 221 def discoInfos(self, entity_jid, node=u'', use_cache=True, profile_key=u"@DEFAULT@", callback=None, errback=None): |
222 if callback is None: | 222 if callback is None: |
223 error_handler = None | 223 error_handler = None |
224 else: | 224 else: |