From ece5e3c302e48fc1578abcd2ff1fc94cf9d9526d Mon Sep 17 00:00:00 2001 From: Hanno Schlichting Date: Wed, 27 Jan 2010 14:46:12 +0000 Subject: [PATCH] Provide our own copy of the default one state workflow. Not all Plone sites have this workflow installed. svn path=/plone.app.discussion/trunk/; revision=33490 --- docs/HISTORY.txt | 1 + .../discussion/profiles/default/workflows.xml | 1 + .../comment_review_workflow/definition.xml | 2 +- .../one_state_workflow/definition.xml | 107 ++++++++++++++++++ 4 files changed, 110 insertions(+), 1 deletion(-) create mode 100644 plone/app/discussion/profiles/default/workflows/one_state_workflow/definition.xml diff --git a/docs/HISTORY.txt b/docs/HISTORY.txt index abc0f0d..eec31a2 100644 --- a/docs/HISTORY.txt +++ b/docs/HISTORY.txt @@ -4,6 +4,7 @@ Changelog 1.0b3 (XXXX-XX-XX) ------------------ +* Provide our own copy of the default one state workflow. Not all Plone sites have this workflow installed. [hannosch] * Register the event subscribers for the correct interfaces in Plone 3. [hannosch] * Factored out subscriber declarations into its own ZCML file. [hannosch] * Bugfix for #2281226: Moderation View: Comments disappear when hitting the 'Apply' button without choosing a bulk action. [timo] diff --git a/plone/app/discussion/profiles/default/workflows.xml b/plone/app/discussion/profiles/default/workflows.xml index 22e5237..d94ce24 100644 --- a/plone/app/discussion/profiles/default/workflows.xml +++ b/plone/app/discussion/profiles/default/workflows.xml @@ -1,6 +1,7 @@ + diff --git a/plone/app/discussion/profiles/default/workflows/comment_review_workflow/definition.xml b/plone/app/discussion/profiles/default/workflows/comment_review_workflow/definition.xml index cdad5f6..a53fe39 100644 --- a/plone/app/discussion/profiles/default/workflows/comment_review_workflow/definition.xml +++ b/plone/app/discussion/profiles/default/workflows/comment_review_workflow/definition.xml @@ -1,6 +1,6 @@ + + + Access contents information + Change portal events + List folder contents + Modify portal content + View + + + + Visible to everyone, editable by the owner. + + + Anonymous + + + Manager + Owner + Editor + + + Anonymous + + + Manager + Owner + Editor + + + Anonymous + + + + + Previous transition + + + transition/getId|nothing + + + + + + + The ID of the user who performed the previous transition + + + + user/getId + + + + + + + Comment about the last transition + + + + python:state_change.kwargs.get('comment', '') + + + + + + + Provides access to workflow history + + + + state_change/getHistory + + + Request review + Review portal content + + + + + When the previous transition was performed + + + + state_change/getDateTime + + + + + +