plugin XEP-0059: first draft, pubsub and jabber search do not exploit it yet
This commit is contained in:
parent
3f60f92696
commit
20c94f1fbc
1 changed files with 219 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue