diff 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
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0050.py	Sun Oct 01 12:21:21 2017 +0200
+++ b/src/plugins/plugin_xep_0050.py	Sun Oct 01 12:21:23 2017 +0200
@@ -324,7 +324,7 @@
                                   )
 
         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))