wix: Form submitting, first draft

This commit is contained in:
Goffi 2009-12-14 02:11:05 +11:00
commit 914f7da809

View file

@ -36,7 +36,7 @@ PLUGIN_INFO = {
"type": "XEP",
"dependencies": [],
"main": "XEP_0077",
"description": """Implementation of SI File Transfert"""
"description": """Implementation of in-band registration"""
}
class XEP_0077():
@ -49,8 +49,9 @@ class XEP_0077():
def reg_ok(self, answer):
"""Called after the first get IQ"""
form = data_form.Form.fromElement(answer.firstChildElement().firstChildElement())
pdb.set_trace()
xml_data = XMLTools.dataForm2xml(form)
self.host.bridge.actionResult("FORM", answer['id'], {"type":"registration", "xml":xml_data})
self.host.bridge.actionResult("FORM", answer['id'], {"target":answer["from"], "type":"registration", "xml":xml_data})
def reg_err(self, failure):
"""Called when something is wrong with registration"""