comparison 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
comparison
equal deleted inserted replaced
2404:f05c884cd3ef 2405:f4b6176eb65f
116 the value is a callable, it will get widget's type, args and kwargs 116 the value is a callable, it will get widget's type, args and kwargs
117 and must return the same variable, which it can modify 117 and must return the same variable, which it can modify
118 This is especially useful to modify well known fields 118 This is especially useful to modify well known fields
119 @return: the completed XMLUI instance 119 @return: the completed XMLUI instance
120 """ 120 """
121 if filters is None:
122 filters = {}
121 if form.instructions: 123 if form.instructions:
122 form_ui.addText('\n'.join(form.instructions), 'instructions') 124 form_ui.addText('\n'.join(form.instructions), 'instructions')
123 125
124 form_ui.changeContainer("label") 126 form_ui.changeContainer("label")
125 127