Mercurial > libervia-backend
diff plugins/plugin_xep_0077.py @ 102:94011f553cd0
misc bugfixes
- wix: added forgotten profile in gateways management
- xml_tools: removed XMLClass to the 2 methods as a direct methods
- plugin_xep_100 (gateways discovery): added error callback
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 22 Jun 2010 13:58:53 +0800 |
parents | 783e9d6980ec |
children | 6be927a465ed |
line wrap: on
line diff
--- a/plugins/plugin_xep_0077.py Sat Jun 19 17:15:30 2010 +0800 +++ b/plugins/plugin_xep_0077.py Tue Jun 22 13:58:53 2010 +0800 @@ -24,7 +24,7 @@ from twisted.words.protocols.jabber import error as jab_error from twisted.words.protocols.jabber.xmlstream import IQ from twisted.internet import reactor -from tools.xml_tools import XMLTools +from tools.xml_tools import dataForm2xml import pdb from wokkel import data_form @@ -67,7 +67,7 @@ return form = data_form.Form.fromElement(x_elem) - xml_data = XMLTools.dataForm2xml(form) + xml_data = dataForm2xml(form) self.host.bridge.actionResult("FORM", answer['id'], {"target":answer["from"], "type":"registration", "xml":xml_data}) def reg_err(self, failure): @@ -75,7 +75,7 @@ info (_("Registration failure: %s") % str(failure.value)) answer_data = {} answer_data['reason'] = 'unknown' - answer_data={"message":"%s [code: %s]" % (failure.value.condition, failure.value.code)} + answer_data={"message":"%s [code: %s]" % (failure.value.condition, unicode(failure.value))} answer_type = "ERROR" self.host.bridge.actionResult(answer_type, failure.value.stanza['id'], answer_data)