Commit 8192aa44 authored by Romain Courteaud's avatar Romain Courteaud

Add a Contribution Predication for contributing URL into Web Page, based on the URL mimetype.

Mimetype is a Document's property, so fix ContributionPredicate_view in order to handle it correctly.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26143 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bb3e6ca5
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ContributionPredicate" module="Products.ERP5Type.Document.ContributionPredicate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_identity_criterion</string> </key>
<value>
<dictionary>
<item>
<key> <string>mime_type</string> </key>
<value>
<list>
<string>text/html</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>_range_criterion</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>criterion_property</string> </key>
<value>
<tuple>
<string>mime_type</string>
</tuple>
</value>
</item>
<item>
<key> <string>destination_portal_type</string> </key>
<value> <string>Web Page</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>webpage_mimetype</string> </value>
</item>
<item>
<key> <string>int_index</string> </key>
<value> <int>90</int> </value>
</item>
<item>
<key> <string>membership_criterion_base_category</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Contribution Predicate</string> </value>
</item>
<item>
<key> <string>test_method_id</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Web Page</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -228,6 +228,10 @@ ...@@ -228,6 +228,10 @@
<string>file_extension</string> <string>file_extension</string>
<string>file_extension</string> <string>file_extension</string>
</tuple> </tuple>
<tuple>
<string>mime_type</string>
<string>mime_type</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -223,12 +223,7 @@ ...@@ -223,12 +223,7 @@
<item> <item>
<key> <string>items</string> </key> <key> <string>items</string> </key>
<value> <value>
<list> <list/>
<tuple>
<string>mime_type</string>
<string>mime_type</string>
</tuple>
</list>
</value> </value>
</item> </item>
<item> <item>
......
1127 1129
\ No newline at end of file \ No newline at end of file
...@@ -23,6 +23,7 @@ portal_contribution_registry/presentation_extension ...@@ -23,6 +23,7 @@ portal_contribution_registry/presentation_extension
portal_contribution_registry/spreadsheet_extension portal_contribution_registry/spreadsheet_extension
portal_contribution_registry/text_extension portal_contribution_registry/text_extension
portal_contribution_registry/webpage_extension portal_contribution_registry/webpage_extension
portal_contribution_registry/webpage_mimetype
portal_domains/base_day_domain portal_domains/base_day_domain
portal_domains/base_month_domain portal_domains/base_month_domain
portal_domains/base_week_domain portal_domains/base_week_domain
......
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