From 3d1c349d72db0744e34d550988b52ff41bb1f7fe Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Mon, 7 Apr 2014 14:00:15 +0200
Subject: [PATCH] erp5_calendar: migrate Documents to portal_components

---
 .../document.erp5.GroupCalendarAssignment.py} |  0
 .../document.erp5.GroupCalendarAssignment.xml | 96 +++++++++++++++++++
 bt5/erp5_calendar/bt/revision                 |  2 +-
 .../bt/template_document_id_list              |  2 +-
 4 files changed, 98 insertions(+), 2 deletions(-)
 rename bt5/erp5_calendar/DocumentTemplateItem/{GroupCalendarAssignment.py => portal_components/document.erp5.GroupCalendarAssignment.py} (100%)
 create mode 100644 bt5/erp5_calendar/DocumentTemplateItem/portal_components/document.erp5.GroupCalendarAssignment.xml

diff --git a/bt5/erp5_calendar/DocumentTemplateItem/GroupCalendarAssignment.py b/bt5/erp5_calendar/DocumentTemplateItem/portal_components/document.erp5.GroupCalendarAssignment.py
similarity index 100%
rename from bt5/erp5_calendar/DocumentTemplateItem/GroupCalendarAssignment.py
rename to bt5/erp5_calendar/DocumentTemplateItem/portal_components/document.erp5.GroupCalendarAssignment.py
diff --git a/bt5/erp5_calendar/DocumentTemplateItem/portal_components/document.erp5.GroupCalendarAssignment.xml b/bt5/erp5_calendar/DocumentTemplateItem/portal_components/document.erp5.GroupCalendarAssignment.xml
new file mode 100644
index 0000000000..64e965eda3
--- /dev/null
+++ b/bt5/erp5_calendar/DocumentTemplateItem/portal_components/document.erp5.GroupCalendarAssignment.xml
@@ -0,0 +1,96 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="Document Component" module="erp5.portal_type"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>default_reference</string> </key>
+            <value> <string>GroupCalendarAssignment</string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>document.erp5.GroupCalendarAssignment</string> </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Document Component</string> </value>
+        </item>
+        <item>
+            <key> <string>sid</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>text_content_error_message</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>text_content_warning_message</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>version</string> </key>
+            <value> <string>erp5</string> </value>
+        </item>
+        <item>
+            <key> <string>workflow_history</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="PersistentMapping" module="Persistence.mapping"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>data</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>component_validation_workflow</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+                    </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
+    </pickle>
+    <pickle>
+      <tuple>
+        <none/>
+        <list>
+          <dictionary>
+            <item>
+                <key> <string>action</string> </key>
+                <value> <string>validate</string> </value>
+            </item>
+            <item>
+                <key> <string>validation_state</string> </key>
+                <value> <string>validated</string> </value>
+            </item>
+          </dictionary>
+        </list>
+      </tuple>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_calendar/bt/revision b/bt5/erp5_calendar/bt/revision
index 9361cf7165..1c34b96390 100644
--- a/bt5/erp5_calendar/bt/revision
+++ b/bt5/erp5_calendar/bt/revision
@@ -1 +1 @@
-376
\ No newline at end of file
+377
\ No newline at end of file
diff --git a/bt5/erp5_calendar/bt/template_document_id_list b/bt5/erp5_calendar/bt/template_document_id_list
index 5df39c8189..9f487d4fb5 100644
--- a/bt5/erp5_calendar/bt/template_document_id_list
+++ b/bt5/erp5_calendar/bt/template_document_id_list
@@ -1 +1 @@
-GroupCalendarAssignment
\ No newline at end of file
+document.erp5.GroupCalendarAssignment
\ No newline at end of file
-- 
2.30.9