Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0055.py @ 725:7c806491c76a
plugin XEP-0055: fixed form's namespace
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 03 Dec 2013 13:51:08 +0100 |
parents | 694f118d0cd5 |
children | 2f8d72226bc0 |
comparison
equal
deleted
inserted
replaced
724:6edd9bda4e3f | 725:7c806491c76a |
---|---|
98 client = self.host.getClient(profile_key) | 98 client = self.host.getClient(profile_key) |
99 search_request = IQ(client.xmlstream, 'set') | 99 search_request = IQ(client.xmlstream, 'set') |
100 search_request["from"] = client.jid.full() | 100 search_request["from"] = client.jid.full() |
101 search_request["to"] = to_jid.full() | 101 search_request["to"] = to_jid.full() |
102 query_elt = search_request.addElement('query', NS_SEARCH) | 102 query_elt = search_request.addElement('query', NS_SEARCH) |
103 x_form = data_form.Form('submit') | 103 x_form = data_form.Form('submit', formNamespace = NS_SEARCH) |
104 x_form.makeFields(search_dict) | 104 x_form.makeFields(search_dict) |
105 query_elt.addChild(x_form.toElement()) | 105 query_elt.addChild(x_form.toElement()) |
106 d = search_request.send(to_jid.full()) | 106 d = search_request.send(to_jid.full()) |
107 d.addCallbacks(self._searchOk, self._searchErr, callbackArgs=[client.profile], errbackArgs=[client.profile]) | 107 d.addCallbacks(self._searchOk, self._searchErr, callbackArgs=[client.profile], errbackArgs=[client.profile]) |
108 return d | 108 return d |