Commit 3e1b44b8 authored by Nicolas Delaby's avatar Nicolas Delaby

Update portal_transforms chains.

* update safe_html chain with new option default_encoding
* Add pdf_to_png chain to avoid conversion of pdf into transitional format pnmraw and
consume less memory.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35624 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1fb4add1
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Transform" module="Products.PortalTransforms.Transform"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_config</string> </key>
<value>
<object>
<klass>
<global id="1.1" name="UserDict" module="UserDict"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>__allow_access_to_unprotected_subobjects__</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_config_metadata</string> </key>
<value>
<object>
<klass> <reference id="1.1"/> </klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>pdf_to_png</string> </value>
</item>
<item>
<key> <string>inputs</string> </key>
<value>
<tuple>
<string>application/pdf</string>
</tuple>
</value>
</item>
<item>
<key> <string>module</string> </key>
<value> <string>Products.PortalTransforms.transforms.pdf_to_png</string> </value>
</item>
<item>
<key> <string>output</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -27,6 +27,10 @@ ...@@ -27,6 +27,10 @@
<key> <string>data</string> </key> <key> <string>data</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item> <item>
<key> <string>disable_transform</string> </key> <key> <string>disable_transform</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
...@@ -78,35 +82,41 @@ ...@@ -78,35 +82,41 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>disable_transform</string> </key> <key> <string>default_encoding</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
<key> <string>inputs</string> </key> <key> <string>disable_transform</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
<key> <string>nasty_tags</string> </key> <key> <string>inputs</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
<key> <string>remove_javascript</string> </key> <key> <string>nasty_tags</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
<key> <string>valid_tags</string> </key> <key> <string>remove_javascript</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>valid_tags</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAo=</string> </persistent>
</value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -472,6 +482,25 @@ ...@@ -472,6 +482,25 @@
</pickle> </pickle>
</record> </record>
<record id="5" aka="AAAAAAAAAAU="> <record id="5" aka="AAAAAAAAAAU=">
<pickle>
<global name="PersistentList" module="persistent.list"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<list>
<string>string</string>
<string>default_encoding</string>
<string>Encoding used for html string. If encoding is different, the string will be converted</string>
</list>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="6" aka="AAAAAAAAAAY=">
<pickle> <pickle>
<global name="PersistentList" module="persistent.list"/> <global name="PersistentList" module="persistent.list"/>
</pickle> </pickle>
...@@ -490,7 +519,7 @@ ...@@ -490,7 +519,7 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="6" aka="AAAAAAAAAAY="> <record id="7" aka="AAAAAAAAAAc=">
<pickle> <pickle>
<global name="PersistentList" module="persistent.list"/> <global name="PersistentList" module="persistent.list"/>
</pickle> </pickle>
...@@ -509,7 +538,7 @@ ...@@ -509,7 +538,7 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="7" aka="AAAAAAAAAAc="> <record id="8" aka="AAAAAAAAAAg=">
<pickle> <pickle>
<global name="PersistentList" module="persistent.list"/> <global name="PersistentList" module="persistent.list"/>
</pickle> </pickle>
...@@ -532,7 +561,7 @@ ...@@ -532,7 +561,7 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="8" aka="AAAAAAAAAAg="> <record id="9" aka="AAAAAAAAAAk=">
<pickle> <pickle>
<global name="PersistentList" module="persistent.list"/> <global name="PersistentList" module="persistent.list"/>
</pickle> </pickle>
...@@ -555,7 +584,7 @@ ...@@ -555,7 +584,7 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="9" aka="AAAAAAAAAAk="> <record id="10" aka="AAAAAAAAAAo=">
<pickle> <pickle>
<global name="PersistentList" module="persistent.list"/> <global name="PersistentList" module="persistent.list"/>
</pickle> </pickle>
......
1588 1589
\ No newline at end of file \ 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