changeset 4032:bb211f80c3e6

tools (xml_tools): add fields's `values` when converting data form to dict
author Goffi <goffi@goffi.org>
date Fri, 07 Apr 2023 14:59:01 +0200
parents a2d4bd1943ba
children 5a42c7842556
files sat/tools/xml_tools.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat/tools/xml_tools.py	Thu Mar 30 16:57:11 2023 +0200
+++ b/sat/tools/xml_tools.py	Fri Apr 07 14:59:01 2023 +0200
@@ -226,6 +226,8 @@
             ('var', 'name'),
             ('label', 'label'),
             ('value', 'value'),
+            # FIXME: we probably should have only "values"
+            ('values', 'values')
         ):
             value = getattr(form_field, src_name, None)
             if value: