diff sat/tools/xml_tools.py @ 3531:a8259a1f89b2

component file sharing (management): add values of `quota` and `used` size on result form
author Goffi <goffi@goffi.org>
date Wed, 05 May 2021 15:37:33 +0200
parents 2bd75fc2555d
children d33da3fe34a5
line wrap: on
line diff
--- a/sat/tools/xml_tools.py	Wed May 05 15:37:33 2021 +0200
+++ b/sat/tools/xml_tools.py	Wed May 05 15:37:33 2021 +0200
@@ -245,7 +245,8 @@
         - an optional "namespace" key with form namespace
         - a mandatory "fields" key with list of fields as follow:
             - "type" is mostly the same as data_form.Field.fieldType
-            - "var", "label", and "value" follow same attribude in data_form.Field
+            - "name" is used to set the "var" attribute of data_form.Field
+            - "label", and "value" follow same attribude in data_form.Field
             - "xhtml" is used for "xml" fields with child in the C.NS_XHTML namespace
             - "options" are list of dict with optional "label" and mandatory "value"
               following suitable attributes from data_form.Option