From 81e8d1500759388107f8c3efd32abf7a6f1b95ad Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Mon, 13 Dec 2010 05:23:15 +0000
Subject: [PATCH] 2010-12-13 nicolas.dumazet * Migrate Tools to portal type
 classes

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41371 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_types/Archive%20Tool.xml           |  9 ++--
 .../ToolTemplateItem/portal_archives.xml      |  9 ++--
 bt5/erp5_archive/bt/change_log                |  3 ++
 bt5/erp5_archive/bt/revision                  |  2 +-
 .../portal_types/Contribution%20Tool.xml      |  9 ++--
 .../portal_types/Url%20Registry%20Tool.xml    | 54 +++++++++++++++++++
 .../ToolTemplateItem/portal_contributions.xml |  9 ++--
 .../ToolTemplateItem/portal_url_registry.xml  |  2 +-
 bt5/erp5_ingestion/bt/change_log              |  3 ++
 bt5/erp5_ingestion/bt/revision                |  2 +-
 .../bt/template_portal_type_id_list           |  3 +-
 .../portal_types/Gadget%20Tool.xml            |  9 ++--
 .../ToolTemplateItem/portal_gadgets.xml       |  9 ++--
 bt5/erp5_knowledge_pad/bt/change_log          |  3 ++
 bt5/erp5_knowledge_pad/bt/revision            |  2 +-
 .../portal_types/Wizard%20Tool.xml            |  9 ++--
 .../ToolTemplateItem/portal_wizard.xml        |  5 +-
 bt5/erp5_wizard/bt/change_log                 |  3 ++
 bt5/erp5_wizard/bt/revision                   |  2 +-
 19 files changed, 103 insertions(+), 44 deletions(-)
 create mode 100644 bt5/erp5_ingestion/PortalTypeTemplateItem/portal_types/Url%20Registry%20Tool.xml

diff --git a/bt5/erp5_archive/PortalTypeTemplateItem/portal_types/Archive%20Tool.xml b/bt5/erp5_archive/PortalTypeTemplateItem/portal_types/Archive%20Tool.xml
index e5ecdbfdf4..104a43c122 100644
--- a/bt5/erp5_archive/PortalTypeTemplateItem/portal_types/Archive%20Tool.xml
+++ b/bt5/erp5_archive/PortalTypeTemplateItem/portal_types/Archive%20Tool.xml
@@ -2,10 +2,7 @@
 <ZopeData>
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
-      <tuple>
-        <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/>
-        <tuple/>
-      </tuple>
+      <global name="Base Type" module="erp5.portal_type"/>
     </pickle>
     <pickle>
       <dictionary>
@@ -55,6 +52,10 @@
             <key> <string>title</string> </key>
             <value> <string>Archive Tool</string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>ArchiveTool</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_archive/ToolTemplateItem/portal_archives.xml b/bt5/erp5_archive/ToolTemplateItem/portal_archives.xml
index ab28dc326f..3f7940baea 100644
--- a/bt5/erp5_archive/ToolTemplateItem/portal_archives.xml
+++ b/bt5/erp5_archive/ToolTemplateItem/portal_archives.xml
@@ -2,10 +2,7 @@
 <ZopeData>
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
-      <tuple>
-        <global name="ArchiveTool" module="Products.ERP5Catalog.Tool.ArchiveTool"/>
-        <tuple/>
-      </tuple>
+      <global name="Archive Tool" module="erp5.portal_type"/>
     </pickle>
     <pickle>
       <dictionary>
@@ -46,7 +43,7 @@
   </record>
   <record id="3" aka="AAAAAAAAAAM=">
     <pickle>
-      <global name="OOBTree" module="BTrees._OOBTree"/>
+      <global name="OOBTree" module="BTrees.OOBTree"/>
     </pickle>
     <pickle>
       <none/>
@@ -54,7 +51,7 @@
   </record>
   <record id="4" aka="AAAAAAAAAAQ=">
     <pickle>
-      <global name="OOBTree" module="BTrees._OOBTree"/>
+      <global name="OOBTree" module="BTrees.OOBTree"/>
     </pickle>
     <pickle>
       <none/>
diff --git a/bt5/erp5_archive/bt/change_log b/bt5/erp5_archive/bt/change_log
index 84a8a65a33..b8ca53912d 100644
--- a/bt5/erp5_archive/bt/change_log
+++ b/bt5/erp5_archive/bt/change_log
@@ -1,3 +1,6 @@
+2010-12-13 nicolas.dumazet
+* Migrate Tools to portal type classes
+
 2009-11-13 aurel
 * Proxify forms
 
diff --git a/bt5/erp5_archive/bt/revision b/bt5/erp5_archive/bt/revision
index 7730ef7f3e..a46c9d2265 100644
--- a/bt5/erp5_archive/bt/revision
+++ b/bt5/erp5_archive/bt/revision
@@ -1 +1 @@
-89
\ No newline at end of file
+91
\ No newline at end of file
diff --git a/bt5/erp5_ingestion/PortalTypeTemplateItem/portal_types/Contribution%20Tool.xml b/bt5/erp5_ingestion/PortalTypeTemplateItem/portal_types/Contribution%20Tool.xml
index 13ff83a673..2dfc757f50 100644
--- a/bt5/erp5_ingestion/PortalTypeTemplateItem/portal_types/Contribution%20Tool.xml
+++ b/bt5/erp5_ingestion/PortalTypeTemplateItem/portal_types/Contribution%20Tool.xml
@@ -2,10 +2,7 @@
 <ZopeData>
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
-      <tuple>
-        <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/>
-        <tuple/>
-      </tuple>
+      <global name="Base Type" module="erp5.portal_type"/>
     </pickle>
     <pickle>
       <dictionary>
@@ -74,6 +71,10 @@
             <key> <string>title</string> </key>
             <value> <string>Contribution Tool</string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>ContributionTool</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_ingestion/PortalTypeTemplateItem/portal_types/Url%20Registry%20Tool.xml b/bt5/erp5_ingestion/PortalTypeTemplateItem/portal_types/Url%20Registry%20Tool.xml
new file mode 100644
index 0000000000..638c67e16d
--- /dev/null
+++ b/bt5/erp5_ingestion/PortalTypeTemplateItem/portal_types/Url%20Registry%20Tool.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="Base Type" module="erp5.portal_type"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>content_icon</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>Url Registry Tool</string> </value>
+        </item>
+        <item>
+            <key> <string>init_script</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>permission</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Base Type</string> </value>
+        </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>UrlRegistryTool</string> </value>
+        </item>
+        <item>
+            <key> <string>type_mixin</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_ingestion/ToolTemplateItem/portal_contributions.xml b/bt5/erp5_ingestion/ToolTemplateItem/portal_contributions.xml
index 209e44a78e..68e8be5359 100644
--- a/bt5/erp5_ingestion/ToolTemplateItem/portal_contributions.xml
+++ b/bt5/erp5_ingestion/ToolTemplateItem/portal_contributions.xml
@@ -2,10 +2,7 @@
 <ZopeData>
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
-      <tuple>
-        <global name="ContributionTool" module="Products.ERP5.Tool.ContributionTool"/>
-        <tuple/>
-      </tuple>
+      <global name="Contribution Tool" module="erp5.portal_type"/>
     </pickle>
     <pickle>
       <dictionary>
@@ -1497,7 +1494,7 @@
   </record>
   <record id="3" aka="AAAAAAAAAAM=">
     <pickle>
-      <global name="OOBTree" module="BTrees._OOBTree"/>
+      <global name="OOBTree" module="BTrees.OOBTree"/>
     </pickle>
     <pickle>
       <none/>
@@ -1505,7 +1502,7 @@
   </record>
   <record id="4" aka="AAAAAAAAAAQ=">
     <pickle>
-      <global name="OOBTree" module="BTrees._OOBTree"/>
+      <global name="OOBTree" module="BTrees.OOBTree"/>
     </pickle>
     <pickle>
       <none/>
diff --git a/bt5/erp5_ingestion/ToolTemplateItem/portal_url_registry.xml b/bt5/erp5_ingestion/ToolTemplateItem/portal_url_registry.xml
index e3035b3553..637feab6f2 100644
--- a/bt5/erp5_ingestion/ToolTemplateItem/portal_url_registry.xml
+++ b/bt5/erp5_ingestion/ToolTemplateItem/portal_url_registry.xml
@@ -2,7 +2,7 @@
 <ZopeData>
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
-      <global name="UrlRegistryTool" module="Products.ERP5.Tool.UrlRegistryTool"/>
+      <global name="Url Registry Tool" module="erp5.portal_type"/>
     </pickle>
     <pickle>
       <dictionary>
diff --git a/bt5/erp5_ingestion/bt/change_log b/bt5/erp5_ingestion/bt/change_log
index 097a70b099..9f0fd5a173 100644
--- a/bt5/erp5_ingestion/bt/change_log
+++ b/bt5/erp5_ingestion/bt/change_log
@@ -1,3 +1,6 @@
+2010-12-13 nicolas.dumazet
+* Migrate Tools to portal type classes
+
 2010-09-21 nicolas
 * Add LiveTest instance to check
 Ingestion of URLs
diff --git a/bt5/erp5_ingestion/bt/revision b/bt5/erp5_ingestion/bt/revision
index 8d9f781b52..a09fd8ad47 100644
--- a/bt5/erp5_ingestion/bt/revision
+++ b/bt5/erp5_ingestion/bt/revision
@@ -1 +1 @@
-118
\ No newline at end of file
+124
\ No newline at end of file
diff --git a/bt5/erp5_ingestion/bt/template_portal_type_id_list b/bt5/erp5_ingestion/bt/template_portal_type_id_list
index f480bd0ab8..ca29679f4e 100644
--- a/bt5/erp5_ingestion/bt/template_portal_type_id_list
+++ b/bt5/erp5_ingestion/bt/template_portal_type_id_list
@@ -1 +1,2 @@
-Contribution Tool
\ No newline at end of file
+Contribution Tool
+Url Registry Tool
\ No newline at end of file
diff --git a/bt5/erp5_knowledge_pad/PortalTypeTemplateItem/portal_types/Gadget%20Tool.xml b/bt5/erp5_knowledge_pad/PortalTypeTemplateItem/portal_types/Gadget%20Tool.xml
index fcd95457b8..c11ec2f6e4 100644
--- a/bt5/erp5_knowledge_pad/PortalTypeTemplateItem/portal_types/Gadget%20Tool.xml
+++ b/bt5/erp5_knowledge_pad/PortalTypeTemplateItem/portal_types/Gadget%20Tool.xml
@@ -2,10 +2,7 @@
 <ZopeData>
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
-      <tuple>
-        <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/>
-        <tuple/>
-      </tuple>
+      <global name="Base Type" module="erp5.portal_type"/>
     </pickle>
     <pickle>
       <dictionary>
@@ -77,6 +74,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>GadgetTool</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_knowledge_pad/ToolTemplateItem/portal_gadgets.xml b/bt5/erp5_knowledge_pad/ToolTemplateItem/portal_gadgets.xml
index ae725e0aa4..f037b1dda6 100644
--- a/bt5/erp5_knowledge_pad/ToolTemplateItem/portal_gadgets.xml
+++ b/bt5/erp5_knowledge_pad/ToolTemplateItem/portal_gadgets.xml
@@ -2,10 +2,7 @@
 <ZopeData>
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
-      <tuple>
-        <global name="GadgetTool" module="Products.ERP5.Tool.GadgetTool"/>
-        <tuple/>
-      </tuple>
+      <global name="Gadget Tool" module="erp5.portal_type"/>
     </pickle>
     <pickle>
       <dictionary>
@@ -1504,7 +1501,7 @@
   </record>
   <record id="3" aka="AAAAAAAAAAM=">
     <pickle>
-      <global name="OOBTree" module="BTrees._OOBTree"/>
+      <global name="OOBTree" module="BTrees.OOBTree"/>
     </pickle>
     <pickle>
       <none/>
@@ -1512,7 +1509,7 @@
   </record>
   <record id="4" aka="AAAAAAAAAAQ=">
     <pickle>
-      <global name="OOBTree" module="BTrees._OOBTree"/>
+      <global name="OOBTree" module="BTrees.OOBTree"/>
     </pickle>
     <pickle>
       <none/>
diff --git a/bt5/erp5_knowledge_pad/bt/change_log b/bt5/erp5_knowledge_pad/bt/change_log
index ac66939556..ef666815d2 100644
--- a/bt5/erp5_knowledge_pad/bt/change_log
+++ b/bt5/erp5_knowledge_pad/bt/change_log
@@ -1,3 +1,6 @@
+2010-12-13 nicolas.dumazet
+* Migrate Tools to portal type classes
+
 2010-02-15 ivan
 * Use dedicated file system based Gadget class
 
diff --git a/bt5/erp5_knowledge_pad/bt/revision b/bt5/erp5_knowledge_pad/bt/revision
index 0c1a9b6f06..70e36030cf 100644
--- a/bt5/erp5_knowledge_pad/bt/revision
+++ b/bt5/erp5_knowledge_pad/bt/revision
@@ -1 +1 @@
-645
\ No newline at end of file
+648
\ No newline at end of file
diff --git a/bt5/erp5_wizard/PortalTypeTemplateItem/portal_types/Wizard%20Tool.xml b/bt5/erp5_wizard/PortalTypeTemplateItem/portal_types/Wizard%20Tool.xml
index a72e958c51..e1f482bb4e 100644
--- a/bt5/erp5_wizard/PortalTypeTemplateItem/portal_types/Wizard%20Tool.xml
+++ b/bt5/erp5_wizard/PortalTypeTemplateItem/portal_types/Wizard%20Tool.xml
@@ -2,10 +2,7 @@
 <ZopeData>
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
-      <tuple>
-        <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/>
-        <tuple/>
-      </tuple>
+      <global name="Base Type" module="erp5.portal_type"/>
     </pickle>
     <pickle>
       <dictionary>
@@ -74,6 +71,10 @@
             <key> <string>title</string> </key>
             <value> <string></string> </value>
         </item>
+        <item>
+            <key> <string>type_class</string> </key>
+            <value> <string>WizardTool</string> </value>
+        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/bt5/erp5_wizard/ToolTemplateItem/portal_wizard.xml b/bt5/erp5_wizard/ToolTemplateItem/portal_wizard.xml
index b49d6326fc..bf6d5b47a3 100644
--- a/bt5/erp5_wizard/ToolTemplateItem/portal_wizard.xml
+++ b/bt5/erp5_wizard/ToolTemplateItem/portal_wizard.xml
@@ -2,10 +2,7 @@
 <ZopeData>
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
-      <tuple>
-        <global name="WizardTool" module="Products.ERP5Wizard.Tool.WizardTool"/>
-        <tuple/>
-      </tuple>
+      <global name="Wizard Tool" module="erp5.portal_type"/>
     </pickle>
     <pickle>
       <dictionary>
diff --git a/bt5/erp5_wizard/bt/change_log b/bt5/erp5_wizard/bt/change_log
index 1990f7a555..bdc251408e 100644
--- a/bt5/erp5_wizard/bt/change_log
+++ b/bt5/erp5_wizard/bt/change_log
@@ -1,3 +1,6 @@
+2010-12-13 nicolas.dumazet
+* Migrate Tools to portal type classes
+
 2009-10-16 rafael
 * Update for the changes of new portal types of portal types.
 
diff --git a/bt5/erp5_wizard/bt/revision b/bt5/erp5_wizard/bt/revision
index 09df927592..2efea5198b 100644
--- a/bt5/erp5_wizard/bt/revision
+++ b/bt5/erp5_wizard/bt/revision
@@ -1 +1 @@
-166
\ No newline at end of file
+167
\ No newline at end of file
-- 
2.30.9