From 00d309fab93dc4356cd3fd6db17f75e03b8e7d67 Mon Sep 17 00:00:00 2001
From: Alexandre Boeglin <alex@nexedi.com>
Date: Fri, 11 Apr 2008 09:50:12 +0000
Subject: [PATCH] Add "variation" base category to "variation" category type.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20442 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_categories/variation.xml           | 77 +++----------------
 product/ERP5/bootstrap/erp5_core/bt/revision  |  2 +-
 2 files changed, 10 insertions(+), 69 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/variation.xml b/product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/variation.xml
index e4e0242e82..5b511decf4 100644
--- a/product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/variation.xml
+++ b/product/ERP5/bootstrap/erp5_core/CategoryTemplateItem/portal_categories/variation.xml
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.ERP5Type.Document.BaseCategory</string>
-          <string>BaseCategory</string>
-        </tuple>
-        <none/>
+        <global name="BaseCategory" module="Products.ERP5Type.Document.BaseCategory"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -18,24 +15,6 @@
               <none/>
             </value>
         </item>
-        <item>
-            <key> <string>_count</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>_mt_index</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>_tree</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
-            </value>
-        </item>
         <item>
             <key> <string>acquisition_append_value</string> </key>
             <value> <int>0</int> </value>
@@ -82,7 +61,9 @@
         <item>
             <key> <string>category_type</string> </key>
             <value>
-              <tuple/>
+              <tuple>
+                <string>variation</string>
+              </tuple>
             </value>
         </item>
         <item>
@@ -93,7 +74,9 @@
         </item>
         <item>
             <key> <string>description</string> </key>
-            <value> <string></string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>fallback_base_category</string> </key>
@@ -173,9 +156,7 @@
         </item>
         <item>
             <key> <string>title</string> </key>
-            <value>
-              <none/>
-            </value>
+            <value> <string>Variation</string> </value>
         </item>
         <item>
             <key> <string>uid</string> </key>
@@ -192,44 +173,4 @@
       </dictionary>
     </pickle>
   </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>BTrees.Length</string>
-          <string>Length</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle> <int>0</int> </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>BTrees.OOBTree</string>
-          <string>OOBTree</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <none/>
-    </pickle>
-  </record>
-  <record id="4" aka="AAAAAAAAAAQ=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>BTrees.OOBTree</string>
-          <string>OOBTree</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <none/>
-    </pickle>
-  </record>
 </ZopeData>
diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision
index 535afc9412..e1233a6405 100644
--- a/product/ERP5/bootstrap/erp5_core/bt/revision
+++ b/product/ERP5/bootstrap/erp5_core/bt/revision
@@ -1 +1 @@
-785
\ No newline at end of file
+787
\ No newline at end of file
-- 
2.30.9