diff src/tools/xml_tools.py @ 2405:f4b6176eb65f

core (xmlui): fixed data_form => XMLUI conversion when filters is None
author Goffi <goffi@goffi.org>
date Tue, 31 Oct 2017 23:07:26 +0100
parents 3ff9d7a7fe71
children 8b37a62336c3
line wrap: on
line diff
--- a/src/tools/xml_tools.py	Fri Oct 27 18:24:35 2017 +0200
+++ b/src/tools/xml_tools.py	Tue Oct 31 23:07:26 2017 +0100
@@ -118,6 +118,8 @@
         This is especially useful to modify well known fields
     @return: the completed XMLUI instance
     """
+    if filters is None:
+        filters = {}
     if form.instructions:
         form_ui.addText('\n'.join(form.instructions), 'instructions')