plugin XEP-0059: first draft, pubsub and jabber search do not exploit it yet

This commit is contained in:
souliane 2014-09-22 22:25:44 +02:00
commit 20c94f1fbc

View file

@ -35,6 +35,8 @@ PLUGIN_INFO = {
"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 @@ class XEP_0055(object):
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