core (xmlui): fixed data_form => XMLUI conversion when filters is None

This commit is contained in:
Goffi 2017-10-31 23:07:26 +01:00
commit fc08583152

View file

@ -118,6 +118,8 @@ def dataForm2Widgets(form_ui, form, read_only=False, prepend=None, filters=None)
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')