Commit 17ed0012 authored by Ivan Tyagov's avatar Ivan Tyagov

Try to acquire from preferences preferred image quality and format if set...

Try to acquire from preferences preferred image quality and format if set (fallback to previous defaults if not set)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39394 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7373b4cf
...@@ -152,9 +152,7 @@ ...@@ -152,9 +152,7 @@
</item> </item>
<item> <item>
<key> <string>enabled</string> </key> <key> <string>enabled</string> </key>
<value> <value> <string></string> </value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>external_validator</string> </key> <key> <string>external_validator</string> </key>
...@@ -174,11 +172,15 @@ ...@@ -174,11 +172,15 @@
</item> </item>
<item> <item>
<key> <string>image_format</string> </key> <key> <string>image_format</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>image_resolution</string> </key> <key> <string>image_resolution</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>max_length</string> </key> <key> <string>max_length</string> </key>
...@@ -265,7 +267,7 @@ ...@@ -265,7 +267,7 @@
</item> </item>
<item> <item>
<key> <string>image_resolution</string> </key> <key> <string>image_resolution</string> </key>
<value> <string></string> </value> <value> <int>75</int> </value>
</item> </item>
<item> <item>
<key> <string>max_length</string> </key> <key> <string>max_length</string> </key>
...@@ -318,7 +320,20 @@ ...@@ -318,7 +320,20 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>here/hasData</string> </value> <value> <string>python: here.portal_preferences.getPreference(\'preferred_image_format\', \'png\')</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.portal_preferences.getPreference(\'preferred_image_quality\', \'75\')</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
1746 1745
\ 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