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
This commit is contained in:
parent
80a7423f02
commit
4d15d4a4eb
1 changed files with 15 additions and 15 deletions
|
|
@ -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 @@ class XEP_0077(object):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue