Commit 57b1211a authored by Nicolas Delaby's avatar Nicolas Delaby

Use same cache key

Always passing all parameters used to compute the conversion, disregarding format value.
parent fa2c6dce
......@@ -385,12 +385,7 @@ class OOoDocument(OOoDocumentExtensibleTraversableMixin, BaseConvertableFileMixi
# store conversion
self.setConversion(data, mime, format=original_format, **kw)
if requires_pdf_first:
format = original_format
if original_format not in VALID_IMAGE_FORMAT_LIST:
return self.getConversion(format=original_format)
else:
return self.getConversion(format=original_format, **kw)
return self.getConversion(format=original_format, **kw)
security.declareProtected(Permissions.ModifyPortalContent,
'_populateConversionCacheWithHTML')
......
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