diff src/plugins/plugin_xep_0077.py @ 761:2f8d72226bc0

core (xml_tools): dataForm*2XML renamed to dataForm*2XMLUI and now return XMLUI instead of raw XML + submit_id is managed, and session_id is returned if present
author Goffi <goffi@goffi.org>
date Tue, 24 Dec 2013 15:43:22 +0100
parents 0b914394e74f
children bfabeedbf32e
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0077.py	Tue Dec 24 15:19:18 2013 +0100
+++ b/src/plugins/plugin_xep_0077.py	Tue Dec 24 15:43:22 2013 +0100
@@ -20,7 +20,7 @@
 from logging import debug, info, error
 from twisted.words.protocols.jabber import jid
 from twisted.words.protocols.jabber.xmlstream import IQ
-from sat.tools.xml_tools import dataForm2XML
+from sat.tools.xml_tools import dataForm2XMLUI
 
 from wokkel import data_form
 
@@ -63,7 +63,7 @@
             return
 
         form = data_form.Form.fromElement(x_elem)
-        xml_data = dataForm2XML(form)
+        xml_data = dataForm2XMLUI(form, "").toXml()
         self.host.bridge.actionResult("XMLUI", answer['id'], {"target": answer["from"], "type": "registration", "xml": xml_data}, profile)
 
     def reg_err(self, failure, profile):