From 2807b1c6011adfce1f22201729ea796344940062 Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Mon, 17 Mar 2008 16:22:13 +0000 Subject: [PATCH] 2008-03-17 Yusei * erp5_core provides general good set of content type registry by default, until we have to handle content type registry seriously. 2008-03-14 Yusei * Remove portal_contributions. erp5_ingestion will provides the tool. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19963 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../content_type_registry.xml | 481 ++++++++++++++++++ .../ToolTemplateItem/portal_contributions.xml | 31 -- .../ERP5/bootstrap/erp5_core/bt/change_log | 6 + product/ERP5/bootstrap/erp5_core/bt/revision | 2 +- .../bootstrap/erp5_core/bt/template_path_list | 1 + .../erp5_core/bt/template_tool_id_list | 1 - 6 files changed, 489 insertions(+), 33 deletions(-) create mode 100644 product/ERP5/bootstrap/erp5_core/PathTemplateItem/content_type_registry.xml delete mode 100644 product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_contributions.xml diff --git a/product/ERP5/bootstrap/erp5_core/PathTemplateItem/content_type_registry.xml b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/content_type_registry.xml new file mode 100644 index 0000000000..0575669e85 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_core/PathTemplateItem/content_type_registry.xml @@ -0,0 +1,481 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ContentTypeRegistry" module="Products.CMFCore.ContentTypeRegistry"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>predicate_ids</string> </key> + <value> + <tuple> + <string>txt rtf doc odt</string> + <string>img</string> + <string>pdf_file</string> + <string>spread</string> + <string>slides</string> + <string>Drawing</string> + <string>Incoming Emails</string> + <string>Ingested Document</string> + <string>mime_html</string> + <string>html</string> + <string>any</string> + </tuple> + </value> + </item> + <item> + <key> <string>predicates</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>Drawing</string> </key> + <value> + <tuple> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + <string>Drawing</string> + </tuple> + </value> + </item> + <item> + <key> <string>Incoming Emails</string> </key> + <value> + <tuple> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + <string>Mail Message</string> + </tuple> + </value> + </item> + <item> + <key> <string>Ingested Document</string> </key> + <value> + <tuple> + <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> + <string>Document Ingestion Message</string> + </tuple> + </value> + </item> + <item> + <key> <string>any</string> </key> + <value> + <tuple> + <persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent> + <string>File</string> + </tuple> + </value> + </item> + <item> + <key> <string>html</string> </key> + <value> + <tuple> + <persistent> <string encoding="base64">AAAAAAAAAAc=</string> </persistent> + <string>Web Page</string> + </tuple> + </value> + </item> + <item> + <key> <string>img</string> </key> + <value> + <tuple> + <persistent> <string encoding="base64">AAAAAAAAAAg=</string> </persistent> + <string>Image</string> + </tuple> + </value> + </item> + <item> + <key> <string>mime_html</string> </key> + <value> + <tuple> + <persistent> <string encoding="base64">AAAAAAAAAAk=</string> </persistent> + <string>Web Page</string> + </tuple> + </value> + </item> + <item> + <key> <string>pdf_file</string> </key> + <value> + <tuple> + <persistent> <string encoding="base64">AAAAAAAAAAo=</string> </persistent> + <string>PDF</string> + </tuple> + </value> + </item> + <item> + <key> <string>slides</string> </key> + <value> + <tuple> + <persistent> <string encoding="base64">AAAAAAAAAAs=</string> </persistent> + <string>Presentation</string> + </tuple> + </value> + </item> + <item> + <key> <string>spread</string> </key> + <value> + <tuple> + <persistent> <string encoding="base64">AAAAAAAAAAw=</string> </persistent> + <string>Spreadsheet</string> + </tuple> + </value> + </item> + <item> + <key> <string>txt rtf doc odt</string> </key> + <value> + <tuple> + <persistent> <string encoding="base64">AAAAAAAAAA0=</string> </persistent> + <string>Text</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ContentTypeRegistry</string> + <string>ExtensionPredicate</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>extensions</string> </key> + <value> + <list> + <string>sxd</string> + <string>odg</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Drawing</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <tuple> + <global name="ExtensionPredicate" module="Products.CMFCore.ContentTypeRegistry"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>extensions</string> </key> + <value> + <list> + <string>eml</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Incoming Emails</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="5" aka="AAAAAAAAAAU="> + <pickle> + <tuple> + <global name="ExtensionPredicate" module="Products.CMFCore.ContentTypeRegistry"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>extensions</string> </key> + <value> + <list> + <string>emx</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Ingested Document</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="6" aka="AAAAAAAAAAY="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ContentTypeRegistry</string> + <string>MajorMinorPredicate</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>any</string> </value> + </item> + <item> + <key> <string>major</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>minor</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="7" aka="AAAAAAAAAAc="> + <pickle> + <tuple> + <global name="ExtensionPredicate" module="Products.CMFCore.ContentTypeRegistry"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>extensions</string> </key> + <value> + <list> + <string>html</string> + <string>htm</string> + <string>php</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>html</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="8" aka="AAAAAAAAAAg="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ContentTypeRegistry</string> + <string>ExtensionPredicate</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>extensions</string> </key> + <value> + <list> + <string>gif</string> + <string>jpg</string> + <string>jpeg</string> + <string>png</string> + <string>bmp</string> + <string>GIF</string> + <string>JPG</string> + <string>JPEG</string> + <string>PNG</string> + <string>BMP</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>img</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="9" aka="AAAAAAAAAAk="> + <pickle> + <tuple> + <global name="MajorMinorPredicate" module="Products.CMFCore.ContentTypeRegistry"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>mime_html</string> </value> + </item> + <item> + <key> <string>major</string> </key> + <value> + <list> + <string>text</string> + </list> + </value> + </item> + <item> + <key> <string>minor</string> </key> + <value> + <list> + <string>html</string> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="10" aka="AAAAAAAAAAo="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ContentTypeRegistry</string> + <string>ExtensionPredicate</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>extensions</string> </key> + <value> + <list> + <string>pdf</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>pdf_file</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="11" aka="AAAAAAAAAAs="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ContentTypeRegistry</string> + <string>ExtensionPredicate</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>extensions</string> </key> + <value> + <list> + <string>ppt</string> + <string>odp</string> + <string>sxi</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>slides</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="12" aka="AAAAAAAAAAw="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ContentTypeRegistry</string> + <string>ExtensionPredicate</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>extensions</string> </key> + <value> + <list> + <string>xls</string> + <string>ods</string> + <string>sdc</string> + <string>sxc</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>spread</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="13" aka="AAAAAAAAAA0="> + <pickle> + <tuple> + <tuple> + <string>Products.CMFCore.ContentTypeRegistry</string> + <string>ExtensionPredicate</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>extensions</string> </key> + <value> + <list> + <string>txt</string> + <string>doc</string> + <string>odt</string> + <string>sxw</string> + <string>rtf</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>txt rtf doc odt</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_contributions.xml b/product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_contributions.xml deleted file mode 100644 index d43f120e75..0000000000 --- a/product/ERP5/bootstrap/erp5_core/ToolTemplateItem/portal_contributions.xml +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="ContributionTool" module="Products.ERP5.Tool.ContributionTool"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>__ac_local_roles__</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>portal_contributions</string> </value> - </item> - <item> - <key> <string>uid</string> </key> - <value> - <none/> - </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_core/bt/change_log b/product/ERP5/bootstrap/erp5_core/bt/change_log index 9dd06dc8dd..eea58f41bb 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/change_log +++ b/product/ERP5/bootstrap/erp5_core/bt/change_log @@ -1,3 +1,9 @@ +2008-03-17 Yusei +* erp5_core provides general good set of content type registry by default, until we have to handle content type registry seriously. + +2008-03-14 Yusei +* Remove portal_contributions. erp5_ingestion will provides the tool. + 2008-03-07 Kazuhiko * display Enabled flag on alarm list view. diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 4a533e3dd9..8c28da60d7 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -745 \ No newline at end of file +747 \ No newline at end of file diff --git a/product/ERP5/bootstrap/erp5_core/bt/template_path_list b/product/ERP5/bootstrap/erp5_core/bt/template_path_list index 0a1e4d33f9..f4a43f4a58 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/template_path_list +++ b/product/ERP5/bootstrap/erp5_core/bt/template_path_list @@ -1,3 +1,4 @@ +content_type_registry portal_alarms/check_stock portal_caches/erp5_content_long portal_caches/erp5_content_long/default_ram_cache diff --git a/product/ERP5/bootstrap/erp5_core/bt/template_tool_id_list b/product/ERP5/bootstrap/erp5_core/bt/template_tool_id_list index 1b36fc6691..0a58123f08 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/template_tool_id_list +++ b/product/ERP5/bootstrap/erp5_core/bt/template_tool_id_list @@ -1,2 +1 @@ -portal_contributions portal_notifications \ No newline at end of file -- 2.30.9