Commit d72934e8 authored by Ivan Tyagov's avatar Ivan Tyagov

Bypass script that disables raster -> svg conversion for bigger images.

parent 37491d48
......@@ -722,6 +722,9 @@ return True
self.assertEquals(response.getHeader('content-type'), 'image/jpeg')
# testing Image conversions, svg
# disable Image permissiions checks format checks
createZODBPythonScript(portal.portal_skins.custom, 'Image_checkConversionFormatPermission',
'**kw', 'return 1')
response = self.publish(website.absolute_url_path() + '/' +\
image_reference + '?format=svg', credential)
self.assertEquals(response.getHeader('content-type'), 'image/svg+xml')
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment