Commit c11033ab authored by Romain Courteaud's avatar Romain Courteaud

Do not call convert but use index_html method to prevent Unauthorized error.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20450 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 64187618
......@@ -69,9 +69,8 @@
\n
display = \'thumbnail\'\n
format = \'jpg\'\n
context.convert(format=format, display=display, frame=frame)\n
\n
url = "%s?%s" % (context.absolute_url(), make_query(display=display, format=format, frame=frame))\n
url = "%s/index_html?%s" % (context.absolute_url(), make_query(display=display, format=format, frame=frame))\n
\n
return url\n
</string> </value>
......@@ -98,6 +97,12 @@ return url\n
<key> <string>_params</string> </key>
<value> <string>frame</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
......
871
\ No newline at end of file
872
\ 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