core (xmlui): added method to convert data form result to XMLUI:

- former method was misnamed as it was used to convert data form element to XMLUI, so it has been renamed to dataFormEltResult2XMLUI
    - dataFormResult2XMLUI is now use to convert wokkel.data_form.Form instances to XMLUI
This commit is contained in:
Goffi 2017-10-01 12:21:23 +02:00
commit df038ad3d4

View file

@ -324,7 +324,7 @@ class XEP_0050(object):
)
if session_id is None:
return xml_tools.dataFormResult2XMLUI(data_elt)
return xml_tools.dataFormEltResult2XMLUI(data_elt)
form = data_form.Form.fromElement(data_elt)
# we add any present note to the instructions
form.instructions.extend(self._mergeNotes(notes))