Commit 340d674d authored by Ivan Tyagov's avatar Ivan Tyagov

Use preferences to determine preferred image format.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37241 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 73aa6fe9
......@@ -175,7 +175,9 @@
</item>
<item>
<key> <string>image_format</string> </key>
<value> <string></string> </value>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>image_resolution</string> </key>
......@@ -262,7 +264,7 @@
</item>
<item>
<key> <string>image_format</string> </key>
<value> <string>PNG</string> </value>
<value> <string>png</string> </value>
</item>
<item>
<key> <string>image_resolution</string> </key>
......@@ -314,4 +316,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: cell.getPortalObject().portal_preferences.get(\'preferred_image_format\', \'png\')</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
1492
\ No newline at end of file
1493
\ No newline at end of file
......@@ -307,7 +307,7 @@
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
python: \'<div><a href= "%s/view">\' % cell.absolute_url() + (cell.Base_getThumbnailAbsoluteUrl() is not None and \'<img class="left" src="%s?display=thumbnail&format=PNG&" />\' % cell.Base_getThumbnailAbsoluteUrl() or \'\') + \'<span style="font-size: normal">%s</span></a></div><p class="clear" />\' % cell.getDescription()
python: \'<div><a href= "%s/view">\' % cell.absolute_url() + (cell.Base_getThumbnailAbsoluteUrl() is not None and \'<img class="left" src="%s?display=thumbnail&format=%s&" />\' % (cell.Base_getThumbnailAbsoluteUrl(), cell.getPortalObject().portal_preferences.get(\'preferred_image_format\', \'png\')) or \'\') + \'<span style="font-size: normal">%s</span></a></div><p class="clear" />\' % cell.getDescription()
]]></string> </value>
</item>
......
......@@ -175,7 +175,9 @@
</item>
<item>
<key> <string>image_format</string> </key>
<value> <string></string> </value>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>image_resolution</string> </key>
......@@ -262,7 +264,7 @@
</item>
<item>
<key> <string>image_format</string> </key>
<value> <string>PNG</string> </value>
<value> <string>png</string> </value>
</item>
<item>
<key> <string>image_resolution</string> </key>
......@@ -314,4 +316,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: cell.getPortalObject().portal_preferences.get(\'preferred_image_format\', \'png\')</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
968
\ No newline at end of file
969
\ 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