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:
parent
499f2525cc
commit
df038ad3d4
1 changed files with 32 additions and 7 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue