Commit 3109de64 authored by Jérome Perrin's avatar Jérome Perrin

Use getPreference with a default value, this is better when no value is defined in any preference

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15752 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e7e09769
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>preferences/getPreferredStringFieldWidth | python: 30</string> </value> <value> <string>python: preferences.getPreference(\'preferred_string_field_width\', 30)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>preferences/getPreferredTextareaHeight | python:5</string> </value> <value> <string>preferences.getPreference(\'preferred_textarea_height\', 5)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
...@@ -320,7 +320,7 @@ ...@@ -320,7 +320,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>preferences/getPreferredTextareaWidth | python:80</string> </value> <value> <string>preferences.getPreference(\'preferred_textarea_width\', 80)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -283,7 +283,7 @@ ...@@ -283,7 +283,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>preferences/getPreferredStringFieldWidth | python: 30</string> </value> <value> <string>python: preferences.getPreference(\'preferred_string_field_width\', 30)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -271,7 +271,7 @@ ...@@ -271,7 +271,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>preferences/getPreferredStringFieldWidth | python: 30</string> </value> <value> <string>python: preferences.getPreference(\'preferred_string_field_width\', 30)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -306,7 +306,7 @@ ...@@ -306,7 +306,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>preferences/getPreferredStringFieldWidth | python: 30</string> </value> <value> <string>python: preferences.getPreference(\'preferred_string_field_width\', 30)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -584,7 +584,7 @@ ...@@ -584,7 +584,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>preferences/getPreferredStringFieldWidth | python: 30</string> </value> <value> <string>python: preferences.getPreference(\'preferred_string_field_width\', 30)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -279,7 +279,7 @@ ...@@ -279,7 +279,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>preferences/getPreferredStringFieldWidth | python: 30</string> </value> <value> <string>python: preferences.getPreference(\'preferred_string_field_width\', 30)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
414 415
\ No newline at end of file \ 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