Add grouping attribute to numeric widgets

issue10731
review355501002
This commit is contained in:
Cédric Krier
2021-09-26 23:05:02 +02:00
parent 0e41c6940a
commit fa34abb8b3
6 changed files with 31 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
* Add grouping attribute to numeric widgets
* Ensure with a test that objects in the Pool have __slots__
* Use bigdecimal tag for XML-RPC
* Use tuple in Dict value instead of list
+6
View File
@@ -167,6 +167,12 @@ List of attributes shared by many form elements:
* ``symbol``: Only on numerical fields, the name of field which provides
the symbol to display.
.. _common-attributes-grouping:
* ``grouping``: A boolean only on numerical fields to specify if the client
must use grouping separators to display on the widget. The default value
is True.
.. _common-attributes-help_field:
* ``help_field``: The name of Dict field mapping the Selection value with
+1
View File
@@ -110,6 +110,7 @@ attlist.field &= attribute help_field { text }?
attlist.field &=
[a:defaultValue = "0"] attribute toolbar { "0" | "1" }?
attlist.field &= attribute symbol { text }?
attlist.field &= [a:defaultValue = "1"] attribute grouping { "0" | "1" }?
image = element image { attlist.image, empty }
attlist.image &= attribute name { text }
attlist.image &= [a:defaultValue = "icon"] attribute type { "icon" | "url" }?
+11
View File
@@ -493,6 +493,17 @@
</attribute>
</optional>
</define>
<define name="attlist.field" combine="interleave">
<optional>
<attribute a:defaultValue="1">
<name ns="">grouping</name>
<choice>
<value>0</value>
<value>1</value>
</choice>
</attribute>
</optional>
</define>
<define name="image">
<element>
<name ns="">image</name>
+1
View File
@@ -66,6 +66,7 @@ attlist.field &= attribute filename { text }?
attlist.field &= attribute help_field { text }?
attlist.field &= attribute view_ids { text }?
attlist.field &= attribute symbol { text }?
attlist.field &= [a:defaultValue = "1"] attribute grouping { "0" | "1" }?
prefix = element prefix { attlist.affix, empty }
suffix = element suffix { attlist.affix, empty }
attlist.affix &= attribute string { text }?
+11
View File
@@ -272,6 +272,17 @@
</attribute>
</optional>
</define>
<define name="attlist.field" combine="interleave">
<optional>
<attribute a:defaultValue="1">
<name ns="">grouping</name>
<choice>
<value>0</value>
<value>1</value>
</choice>
</attribute>
</optional>
</define>
<define name="prefix">
<element>
<name ns="">prefix</name>