comparison src/plugins/plugin_xep_0050.py @ 2364:918e38622a48

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
author Goffi <goffi@goffi.org>
date Sun, 01 Oct 2017 12:21:23 +0200
parents 33c8c4973743
children 1e5b2c35964e
comparison
equal deleted inserted replaced
2363:41c7717b52cd 2364:918e38622a48
322 }, 322 },
323 session_id = session_id 323 session_id = session_id
324 ) 324 )
325 325
326 if session_id is None: 326 if session_id is None:
327 return xml_tools.dataFormResult2XMLUI(data_elt) 327 return xml_tools.dataFormEltResult2XMLUI(data_elt)
328 form = data_form.Form.fromElement(data_elt) 328 form = data_form.Form.fromElement(data_elt)
329 # we add any present note to the instructions 329 # we add any present note to the instructions
330 form.instructions.extend(self._mergeNotes(notes)) 330 form.instructions.extend(self._mergeNotes(notes))
331 return xml_tools.dataForm2XMLUI(form, self.__requesting_id, session_id=session_id) 331 return xml_tools.dataForm2XMLUI(form, self.__requesting_id, session_id=session_id)
332 332