Commit 4302220a authored by Ivan Tyagov's avatar Ivan Tyagov

When generating an image URLfor FCKEditor include its format (use preferences)...

When generating an image URLfor FCKEditor include its format (use preferences) which is mandatory in order to produce an image output.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40124 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9dab53de
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -59,7 +56,8 @@ if brain.getValidationState() == \'embedded\':\n
reference = brain.getId()\n
else:\n
reference = brain.getReference()\n
return "javascript:SelectFile(\'%s\')" % reference.replace("\'", "\\\\\'")\n
format = context.getPortalObject().portal_preferences.getPreferredImageFormat()\n
return "javascript:SelectFile(\'%s?format=%s\')" % (reference.replace("\'", "\\\\\'"), format)\n
</string> </value>
</item>
<item>
......@@ -100,6 +98,8 @@ return "javascript:SelectFile(\'%s\')" % reference.replace("\'", "\\\\\'")\n
<string>kw</string>
<string>_getattr_</string>
<string>reference</string>
<string>context</string>
<string>format</string>
</tuple>
</value>
</item>
......
1206
\ No newline at end of file
1207
\ 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