Mercurial > libervia-backend
comparison frontends/src/bridge/dbus_bridge.py @ 2534:7da86e1633a5
core: new discoFindFeatures method which return all server services/roster entities implementing a set of features.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 24 Mar 2018 10:46:09 +0100 |
parents | 0046283a285d |
children | 27539029a662 |
comparison
equal
deleted
inserted
replaced
2533:8d82a62fa098 | 2534:7da86e1633a5 |
---|---|
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, service=True, roster=True, own_jid=True, profile_key=u"@DEFAULT@", callback=None, errback=None): | |
213 if callback is None: | |
214 error_handler = None | |
215 else: | |
216 if errback is None: | |
217 errback = log.error | |
218 error_handler = lambda err:errback(dbus_to_bridge_exception(err)) | |
219 return self.db_core_iface.discoFindByFeatures(namespaces, service, roster, own_jid, profile_key, timeout=const_TIMEOUT, reply_handler=callback, error_handler=error_handler) | |
220 | |
212 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): |
213 if callback is None: | 222 if callback is None: |
214 error_handler = None | 223 error_handler = None |
215 else: | 224 else: |
216 if errback is None: | 225 if errback is None: |