Mercurial > libervia-backend
diff src/plugins/plugin_xep_0055.py @ 1219:16484ebb695b
plugin XEP-0059: first draft, pubsub and jabber search do not exploit it yet
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 22 Sep 2014 22:25:44 +0200 |
parents | 301b342c697a |
children | 069ad98b360d |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0055.py Mon Sep 22 20:50:20 2014 +0200 +++ b/src/plugins/plugin_xep_0055.py Mon Sep 22 22:25:44 2014 +0200 @@ -35,6 +35,8 @@ "import_name": "XEP-0055", "type": "XEP", "protocols": ["XEP-0055"], + "dependencies": [], + "recommendations": ["XEP-0059"], "main": "XEP_0055", "handler": "no", "description": _("""Implementation of Jabber Search""") @@ -156,6 +158,7 @@ x_form = data_form.Form('submit', formNamespace = NS_SEARCH) x_form.makeFields(search_dict) query_elt.addChild(x_form.toElement()) + # TODO: XEP-0059 could be used here (with the needed new method attributes) d = search_request.send(to_jid.full()) d.addCallbacks(self._searchOk, self._searchErr, callbackArgs=[client.profile], errbackArgs=[client.profile]) return d