Commit 9169528e authored by Fabien Morin's avatar Fabien Morin

add preference field to store which float input style we want to use in all the application.

Modify some proxyfields to get the value from this property. If no value is defined, the value the proxyfield have before is used, in this way, this change should not have impact for people who don't define this preference field.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29322 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e1ba753e
......@@ -155,7 +155,9 @@
</item>
<item>
<key> <string>input_style</string> </key>
<value> <string></string> </value>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>precision</string> </key>
......@@ -266,4 +268,20 @@
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: preferences.getPreference(\'preferred_float_number_style\', \'-1234.5\')</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -155,7 +155,9 @@
</item>
<item>
<key> <string>input_style</string> </key>
<value> <string></string> </value>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>precision</string> </key>
......@@ -266,4 +268,20 @@
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: preferences.getPreference(\'preferred_float_number_style\', \'-1 234.5\')</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -102,6 +102,7 @@
<value>
<list>
<string>my_preferred_date_order</string>
<string>my_preferred_float_number_style</string>
<string>my_preferred_report_style</string>
<string>my_preferred_report_format</string>
<string>my_preferred_nano_image_height</string>
......
1314
\ No newline at end of file
1315
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment