wix: Form submitting, first draft
This commit is contained in:
parent
245325cea7
commit
914f7da809
1 changed files with 52 additions and 13 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue