Commit 31adaed9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

we need unicode not str here.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44620 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 00de8722
...@@ -57,7 +57,7 @@ if brain.getValidationState() == \'embedded\':\n ...@@ -57,7 +57,7 @@ if brain.getValidationState() == \'embedded\':\n
else:\n else:\n
reference = brain.getReference()\n reference = brain.getReference()\n
format = context.getPortalObject().portal_preferences.getPreferredImageFormat()\n format = context.getPortalObject().portal_preferences.getPreferredImageFormat()\n
return "javascript:SelectFile(\'%s?format=%s\')" % (reference.replace("\'", "\\\\\'"), format)\n return unicode("javascript:SelectFile(\'%s?format=%s\')" % (reference.replace("\'", "\\\\\'"), format), \'utf-8\')\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
1245 1246
\ 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