From e719b9e4d45b8b77b92175f0dcb97791b05f144c Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Wed, 3 Mar 2010 10:38:43 +0000
Subject: [PATCH] Add default worklist for Data Protection Request

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33322 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../worklists.xml                             |   6 +
 .../0_draft_data_protection_request.xml       | 106 ++++++++++++++++++
 .../1_confirmed_data_protection_request.xml   | 106 ++++++++++++++++++
 .../2_open_data_protection_request.xml        | 106 ++++++++++++++++++
 bt5/erp5_data_protection/bt/revision          |   2 +-
 5 files changed, 325 insertions(+), 1 deletion(-)
 create mode 100644 bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists/0_draft_data_protection_request.xml
 create mode 100644 bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists/1_confirmed_data_protection_request.xml
 create mode 100644 bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists/2_open_data_protection_request.xml

diff --git a/bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists.xml b/bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists.xml
index 1f8b17b012..40787ac9e4 100644
--- a/bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists.xml
+++ b/bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists.xml
@@ -15,6 +15,12 @@
               <dictionary/>
             </value>
         </item>
+        <item>
+            <key> <string>_objects</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
         <item>
             <key> <string>id</string> </key>
             <value> <string>worklists</string> </value>
diff --git a/bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists/0_draft_data_protection_request.xml b/bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists/0_draft_data_protection_request.xml
new file mode 100644
index 0000000000..c696e47ee1
--- /dev/null
+++ b/bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists/0_draft_data_protection_request.xml
@@ -0,0 +1,106 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="WorklistDefinition" module="Products.DCWorkflow.Worklists"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>actbox_category</string> </key>
+            <value> <string>global</string> </value>
+        </item>
+        <item>
+            <key> <string>actbox_name</string> </key>
+            <value> <string>Datra protection requests to submit (%(count)s)</string> </value>
+        </item>
+        <item>
+            <key> <string>actbox_url</string> </key>
+            <value> <string encoding="cdata"><![CDATA[
+
+data_protection_request_module?validation_state=draft&portal_type=%(portal_type)s&local_roles=%(local_roles)s&reset:int=1
+
+]]></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>guard</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>0_draft_data_protection_request</string> </value>
+        </item>
+        <item>
+            <key> <string>var_matches</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="Guard" module="Products.DCWorkflow.Guard"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>roles</string> </key>
+            <value>
+              <tuple>
+                <string>Owner</string>
+              </tuple>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="PersistentMapping" module="Persistence.mapping"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>data</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>portal_type</string> </key>
+                    <value>
+                      <tuple>
+                        <string>Data Protection Request</string>
+                      </tuple>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>validation_state</string> </key>
+                    <value>
+                      <tuple>
+                        <string>draft</string>
+                      </tuple>
+                    </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists/1_confirmed_data_protection_request.xml b/bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists/1_confirmed_data_protection_request.xml
new file mode 100644
index 0000000000..0f0a01acf9
--- /dev/null
+++ b/bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists/1_confirmed_data_protection_request.xml
@@ -0,0 +1,106 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="WorklistDefinition" module="Products.DCWorkflow.Worklists"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>actbox_category</string> </key>
+            <value> <string>global</string> </value>
+        </item>
+        <item>
+            <key> <string>actbox_name</string> </key>
+            <value> <string>Datra protection requests to open (%(count)s)</string> </value>
+        </item>
+        <item>
+            <key> <string>actbox_url</string> </key>
+            <value> <string encoding="cdata"><![CDATA[
+
+data_protection_request_module?validation_state=submitted&portal_type=%(portal_type)s&local_roles=%(local_roles)s&reset:int=1
+
+]]></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>guard</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>1_confirmed_data_protection_request</string> </value>
+        </item>
+        <item>
+            <key> <string>var_matches</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="Guard" module="Products.DCWorkflow.Guard"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>roles</string> </key>
+            <value>
+              <tuple>
+                <string>Assignor</string>
+              </tuple>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="PersistentMapping" module="Persistence.mapping"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>data</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>portal_type</string> </key>
+                    <value>
+                      <tuple>
+                        <string>Data Protection Request</string>
+                      </tuple>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>validation_state</string> </key>
+                    <value>
+                      <tuple>
+                        <string>submitted</string>
+                      </tuple>
+                    </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists/2_open_data_protection_request.xml b/bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists/2_open_data_protection_request.xml
new file mode 100644
index 0000000000..162703c334
--- /dev/null
+++ b/bt5/erp5_data_protection/WorkflowTemplateItem/portal_workflow/data_protection_request_workflow/worklists/2_open_data_protection_request.xml
@@ -0,0 +1,106 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="WorklistDefinition" module="Products.DCWorkflow.Worklists"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>actbox_category</string> </key>
+            <value> <string>global</string> </value>
+        </item>
+        <item>
+            <key> <string>actbox_name</string> </key>
+            <value> <string>Datra protection requests to close (%(count)s)</string> </value>
+        </item>
+        <item>
+            <key> <string>actbox_url</string> </key>
+            <value> <string encoding="cdata"><![CDATA[
+
+data_protection_request_module?validation_state=open&portal_type=%(portal_type)s&local_roles=%(local_roles)s&reset:int=1
+
+]]></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>guard</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>2_open_data_protection_request</string> </value>
+        </item>
+        <item>
+            <key> <string>var_matches</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <tuple>
+        <global name="Guard" module="Products.DCWorkflow.Guard"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>roles</string> </key>
+            <value>
+              <tuple>
+                <string>Assignor</string>
+              </tuple>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <tuple>
+        <global name="PersistentMapping" module="Persistence.mapping"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>data</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>portal_type</string> </key>
+                    <value>
+                      <tuple>
+                        <string>Data Protection Request</string>
+                      </tuple>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>validation_state</string> </key>
+                    <value>
+                      <tuple>
+                        <string>open</string>
+                      </tuple>
+                    </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_data_protection/bt/revision b/bt5/erp5_data_protection/bt/revision
index 25bf17fc5a..dec2bf5d61 100644
--- a/bt5/erp5_data_protection/bt/revision
+++ b/bt5/erp5_data_protection/bt/revision
@@ -1 +1 @@
-18
\ No newline at end of file
+19
\ No newline at end of file
-- 
2.30.9