Upgrade step added
Upgrade applies workflow changes to existing instances
This commit is contained in:
parent
64093660ac
commit
9b1eb6834b
@ -1,5 +1,5 @@
|
||||
<metadata>
|
||||
<version>1001</version>
|
||||
<version>1002</version>
|
||||
<dependencies>
|
||||
<dependency>profile-plone.resource:default</dependency>
|
||||
<dependency>profile-plone.app.registry:default</dependency>
|
||||
|
@ -73,3 +73,8 @@ def upgrade_comment_workflows(context):
|
||||
|
||||
def add_js_to_plone_legacy(context):
|
||||
context.runImportStepFromProfile(default_profile, 'plone.app.registry')
|
||||
|
||||
|
||||
def extend_review_workflow(context):
|
||||
"""Apply changes made to review workflow."""
|
||||
upgrade_comment_workflows_retain_current_workflow(context)
|
||||
|
@ -62,4 +62,15 @@
|
||||
/>
|
||||
</genericsetup:upgradeSteps>
|
||||
|
||||
<genericsetup:upgradeSteps
|
||||
source="1001"
|
||||
destination="1002"
|
||||
profile="plone.app.discussion:default">
|
||||
<genericsetup:upgradeStep
|
||||
title="Extended review workflow with states pending, published and new: rejected and spam"
|
||||
description="Additional states allows moderator to review history of publishing and rejection"
|
||||
handler=".upgrades.extend_review_workflow"
|
||||
/>
|
||||
</genericsetup:upgradeSteps>
|
||||
|
||||
</configure>
|
||||
|
Loading…
Reference in New Issue
Block a user