diff plugins/plugin_xep_0077.py @ 36:6491b7956c80

wix: Form submitting, first draft
author Goffi <goffi@goffi.org>
date Mon, 14 Dec 2009 02:11:05 +1100
parents c45deebb40a5
children a61beb21d16d
line wrap: on
line diff
--- a/plugins/plugin_xep_0077.py	Sun Dec 13 20:24:48 2009 +1100
+++ b/plugins/plugin_xep_0077.py	Mon Dec 14 02:11:05 2009 +1100
@@ -36,7 +36,7 @@
 "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 @@
     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"""