comparison sat_frontends/bridge/pb.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 787b15d16347
children 56f94936df1e
comparison
equal deleted inserted replaced
2594:59ba387c17ea 2595:973d4551ffae
178 d.addCallback(lambda dummy: callback()) 178 d.addCallback(lambda dummy: callback())
179 if errback is None: 179 if errback is None:
180 errback = self._generic_errback 180 errback = self._generic_errback
181 d.addErrback(errback) 181 d.addErrback(errback)
182 182
183 def discoFindByFeatures(self, namespaces, identities, bare_jid=False, service=True, roster=True, own_jid=True, profile_key=u"@DEFAULT@", callback=None, errback=None): 183 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):
184 d = self.root.callRemote("discoFindByFeatures", namespaces, identities, bare_jid, service, roster, own_jid, profile_key) 184 d = self.root.callRemote("discoFindByFeatures", namespaces, identities, bare_jid, service, roster, own_jid, local_device, profile_key)
185 if callback is not None: 185 if callback is not None:
186 d.addCallback(callback) 186 d.addCallback(callback)
187 if errback is None: 187 if errback is None:
188 errback = self._generic_errback 188 errback = self._generic_errback
189 d.addErrback(errback) 189 d.addErrback(errback)