Commit 7710830c authored by Ivan Tyagov's avatar Ivan Tyagov

It is a mistake to cast to int as other parts or conversion code (i.e. traversal ones)

will read preference as it is. This can lead to a new cache key and thus a new storage in cache.
parent 7e163c5a
......@@ -58,7 +58,7 @@ portal = context.getPortalObject()\n
\n
portal_type = context.getPortalType()\n
format = portal.portal_preferences.getPreferredImageFormat()\n
quality = int(portal.portal_preferences.getPreferredImageQuality())\n
quality = portal.portal_preferences.getPreferredImageQuality()\n
preferred_image_size = portal.portal_preferences.getPreferredImageSize()\n
\n
# thumbnail is required always\n
......
2
\ No newline at end of file
3
\ 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