Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0055.py @ 2148:a543eda2c923
core (memory/disco): getInfos now handle node + use client instead of profile in many methods
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 12 Feb 2017 20:43:20 +0100 |
parents | 33c8c4973743 |
children | 918e38622a48 |
comparison
equal
deleted
inserted
replaced
2147:bca699faf416 | 2148:a543eda2c923 |
---|---|
83 """Return the jabber search services associated to the user host. | 83 """Return the jabber search services associated to the user host. |
84 | 84 |
85 @param profile (unicode): %(doc_profile)s | 85 @param profile (unicode): %(doc_profile)s |
86 @return: list[jid.JID] | 86 @return: list[jid.JID] |
87 """ | 87 """ |
88 d = self.host.findFeaturesSet([NS_SEARCH], profile=profile) | 88 client = self.host.getClient(profile) |
89 d = self.host.findFeaturesSet(client, [NS_SEARCH]) | |
89 return d.addCallback(lambda set_: list(set_)) | 90 return d.addCallback(lambda set_: list(set_)) |
90 | 91 |
91 | 92 |
92 ## Main search UI (menu item callback) ## | 93 ## Main search UI (menu item callback) ## |
93 | 94 |