comparison src/plugins/plugin_xep_0077.py @ 876:65bf1bc70f6b

tools, plugin XEP-0077: small fixes
author souliane <souliane@mailoo.org>
date Tue, 25 Feb 2014 22:58:42 +0100
parents 1fe00f0c9a91
children 1a759096ccbd
comparison
equal deleted inserted replaced
875:19d7d077478a 876:65bf1bc70f6b
60 try: 60 try:
61 x_elem = query_elt.elements(data_form.NS_X_DATA, 'x').next() 61 x_elem = query_elt.elements(data_form.NS_X_DATA, 'x').next()
62 except StopIteration: 62 except StopIteration:
63 # XXX: it seems we have an old service which doesn't manage data forms 63 # XXX: it seems we have an old service which doesn't manage data forms
64 warning(_("Can't find data form")) 64 warning(_("Can't find data form"))
65 raise DataError(_("This gateway can't be managed by SàT, sorry :(")) 65 raise exceptions.DataError(_("This gateway can't be managed by SàT, sorry :("))
66 66
67 def submitForm(data, profile): 67 def submitForm(data, profile):
68 form_elt = xml_tools.XMLUIResultToElt(data) 68 form_elt = xml_tools.XMLUIResultToElt(data)
69 69
70 iq_elt = compat.IQ(client.xmlstream, 'set') 70 iq_elt = compat.IQ(client.xmlstream, 'set')