Commit 57eaa1fb authored by Romain Courteaud's avatar Romain Courteaud

[erp5_dms] Use an URL to fetch the SVG illustration

It will reduce the HTML size and prevent any browser parsing incompatibility.
parent 7e00ed0d
......@@ -70,6 +70,22 @@
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>image_display</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>image_format</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>image_pre_converted_only</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>image_quality</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
......@@ -127,7 +143,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: "data:%s,%s" % (context.getContentType("image/svg+xml"), context.getTextContent(""))</string> </value>
<value> <string>python: "%s?format=" % here.absolute_url()</string> </value>
</item>
</dictionary>
</pickle>
......
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