From 6b6ff05e9ecd0d2cee9df50fe13e6f0557b75ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl> Date: Thu, 14 Dec 2006 12:56:20 +0000 Subject: [PATCH] Assignor's worklist of documents submitted for review (role-aware). Watch out for hardcoded portal type list. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11720 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../variables/portal_type.xml | 34 +++++ .../worklists.xml | 6 + .../worklists/docs_submitted_for_review.xml | 134 ++++++++++++++++++ bt5/erp5_dms/bt/revision | 2 +- 4 files changed, 175 insertions(+), 1 deletion(-) create mode 100644 bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/document_publication_workflow/variables/portal_type.xml create mode 100644 bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/document_publication_workflow/worklists/docs_submitted_for_review.xml diff --git a/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/document_publication_workflow/variables/portal_type.xml b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/document_publication_workflow/variables/portal_type.xml new file mode 100644 index 0000000000..1781e6eb4b --- /dev/null +++ b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/document_publication_workflow/variables/portal_type.xml @@ -0,0 +1,34 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.DCWorkflow.Variables</string> + <string>VariableDefinition</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>portal_type</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/document_publication_workflow/worklists.xml b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/document_publication_workflow/worklists.xml index f4c2789633..746450c318 100644 --- a/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/document_publication_workflow/worklists.xml +++ b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/document_publication_workflow/worklists.xml @@ -24,6 +24,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_dms/WorkflowTemplateItem/portal_workflow/document_publication_workflow/worklists/docs_submitted_for_review.xml b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/document_publication_workflow/worklists/docs_submitted_for_review.xml new file mode 100644 index 0000000000..0febecfd54 --- /dev/null +++ b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/document_publication_workflow/worklists/docs_submitted_for_review.xml @@ -0,0 +1,134 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.DCWorkflow.Worklists</string> + <string>WorklistDefinition</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>global</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Documents for review (%(count)s)</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +document_module?simulation_state=submitted&local_roles=%(local_roles)s&reset=1&portal_type:list=Text;Spreadsheet;Presentation;Drawing;PDF;File;Image; + +]]></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>docs_submitted_for_review</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> + <tuple> + <string>Products.DCWorkflow.Guard</string> + <string>Guard</string> + </tuple> + <none/> + </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> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary> + <item> + <key> <string>portal_type</string> </key> + <value> + <tuple> + <string>Text</string> + <string>Spreadsheet</string> + <string>Presentation</string> + <string>Drawing</string> + <string>PDF</string> + <string>File</string> + <string>Image</string> + <string></string> + </tuple> + </value> + </item> + <item> + <key> <string>simulation_state</string> </key> + <value> + <tuple> + <string>submitted</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision index 5f7b1b0513..50b04dff0e 100644 --- a/bt5/erp5_dms/bt/revision +++ b/bt5/erp5_dms/bt/revision @@ -1 +1 @@ -399 \ No newline at end of file +402 \ No newline at end of file -- 2.30.9