--- a/src/pyams_content/shared/common/zmi/workflow.py Wed Jun 27 15:52:44 2018 +0200
+++ b/src/pyams_content/shared/common/zmi/workflow.py Wed Jun 27 15:54:28 2018 +0200
@@ -44,7 +44,7 @@
from pyams_utils.traversing import get_parent
from pyams_utils.url import absolute_url
from pyams_viewlet.viewlet import viewlet_config, Viewlet
-from pyams_workflow.zmi.transition import WorkflowContentTransitionForm, WorkflowContentTransitionAJAXForm
+from pyams_workflow.zmi.transition import WorkflowContentTransitionForm
from pyams_zmi.form import InnerAdminAddForm
from pyramid.events import subscriber
from z3c.form import field, button
@@ -126,7 +126,7 @@
@pagelet_config(name='wf-propose.html', context=IWfSharedContent, layer=IPyAMSLayer,
permission=MANAGE_CONTENT_PERMISSION)
@ajax_config(name='wf-propose.json', context=IWfSharedContent, layer=IPyAMSLayer,
- permission=MANAGE_CONTENT_PERMISSION, base=WorkflowContentTransitionAJAXForm)
+ permission=MANAGE_CONTENT_PERMISSION, base=AJAXAddForm)
class PublicationRequestForm(WorkflowContentTransitionForm):
"""Shared content publication request form"""
@@ -213,7 +213,7 @@
@pagelet_config(name='wf-cancel-propose.html', context=IWfSharedContent, layer=IPyAMSLayer,
permission=MANAGE_CONTENT_PERMISSION)
@ajax_config(name='wf-cancel-propose.json', context=IWfSharedContent, layer=IPyAMSLayer,
- permission=MANAGE_CONTENT_PERMISSION, base=WorkflowContentTransitionAJAXForm)
+ permission=MANAGE_CONTENT_PERMISSION, base=AJAXAddForm)
class PublicationRequestCancelForm(WorkflowContentTransitionForm):
"""Shared content publication request cancel form"""
@@ -253,7 +253,7 @@
@pagelet_config(name='wf-refuse.html', context=IWfSharedContent, layer=IPyAMSLayer,
permission=PUBLISH_CONTENT_PERMISSION)
@ajax_config(name='wf-refuse.json', context=IWfSharedContent, layer=IPyAMSLayer,
- permission=PUBLISH_CONTENT_PERMISSION, base=WorkflowContentTransitionAJAXForm)
+ permission=PUBLISH_CONTENT_PERMISSION, base=AJAXAddForm)
class PublicationRequestRefuseForm(WorkflowContentTransitionForm):
"""Shared content publication request refuse form"""
@@ -307,7 +307,7 @@
@pagelet_config(name='wf-publish.html', context=IWfSharedContent, layer=IPyAMSLayer,
permission=PUBLISH_CONTENT_PERMISSION)
@ajax_config(name='wf-publish.json', context=IWfSharedContent, layer=IPyAMSLayer,
- permission=PUBLISH_CONTENT_PERMISSION, base=WorkflowContentTransitionAJAXForm)
+ permission=PUBLISH_CONTENT_PERMISSION, base=AJAXAddForm)
class PublicationForm(WorkflowContentTransitionForm):
"""Shared content publication form"""
@@ -396,7 +396,7 @@
@pagelet_config(name='wf-retiring.html', context=IWfSharedContent, layer=IPyAMSLayer,
permission=MANAGE_CONTENT_PERMISSION)
@ajax_config(name='wf-retiring.json', context=IWfSharedContent, layer=IPyAMSLayer,
- permission=MANAGE_CONTENT_PERMISSION, base=WorkflowContentTransitionAJAXForm)
+ permission=MANAGE_CONTENT_PERMISSION, base=AJAXAddForm)
class PublicationRetireRequestForm(WorkflowContentTransitionForm):
"""Shared content publication request refuse form"""
@@ -452,7 +452,7 @@
@pagelet_config(name='wf-cancel-retiring.html', context=IWfSharedContent, layer=IPyAMSLayer,
permission=MANAGE_CONTENT_PERMISSION)
@ajax_config(name='wf-cancel-retiring.json', context=IWfSharedContent, layer=IPyAMSLayer,
- permission=MANAGE_CONTENT_PERMISSION, base=WorkflowContentTransitionAJAXForm)
+ permission=MANAGE_CONTENT_PERMISSION, base=AJAXAddForm)
class PublicationRetireCancelForm(WorkflowContentTransitionForm):
"""Shared content publication retire request cancel form"""
@@ -492,7 +492,7 @@
@pagelet_config(name='wf-retire.html', context=IWfSharedContent, layer=IPyAMSLayer,
permission=PUBLISH_CONTENT_PERMISSION)
@ajax_config(name='wf-retire.json', context=IWfSharedContent, layer=IPyAMSLayer,
- permission=PUBLISH_CONTENT_PERMISSION, base=WorkflowContentTransitionAJAXForm)
+ permission=PUBLISH_CONTENT_PERMISSION, base=AJAXAddForm)
class PublicationRetireForm(WorkflowContentTransitionForm):
"""Shared content publication retire form"""
@@ -533,7 +533,7 @@
@pagelet_config(name='wf-archiving.html', context=IWfSharedContent, layer=IPyAMSLayer,
permission=MANAGE_CONTENT_PERMISSION)
@ajax_config(name='wf-archiving.json', context=IWfSharedContent, layer=IPyAMSLayer,
- permission=MANAGE_CONTENT_PERMISSION, base=WorkflowContentTransitionAJAXForm)
+ permission=MANAGE_CONTENT_PERMISSION, base=AJAXAddForm)
class PublicationArchiveRequestForm(WorkflowContentTransitionForm):
"""Shared content publication request archive form"""
@@ -576,7 +576,7 @@
@pagelet_config(name='wf-cancel-archiving.html', context=IWfSharedContent, layer=IPyAMSLayer,
permission=MANAGE_CONTENT_PERMISSION)
@ajax_config(name='wf-cancel-archiving.json', context=IWfSharedContent, layer=IPyAMSLayer,
- permission=MANAGE_CONTENT_PERMISSION, base=WorkflowContentTransitionAJAXForm)
+ permission=MANAGE_CONTENT_PERMISSION, base=AJAXAddForm)
class PublicationArchiveCancelForm(WorkflowContentTransitionForm):
"""Shared content publication archive request cancel form"""
@@ -616,7 +616,7 @@
@pagelet_config(name='wf-archive.html', context=IWfSharedContent, layer=IPyAMSLayer,
permission=PUBLISH_CONTENT_PERMISSION)
@ajax_config(name='wf-archive.json', context=IWfSharedContent, layer=IPyAMSLayer,
- permission=PUBLISH_CONTENT_PERMISSION, base=WorkflowContentTransitionAJAXForm)
+ permission=PUBLISH_CONTENT_PERMISSION, base=AJAXAddForm)
class PublicationArchiveForm(WorkflowContentTransitionForm):
"""Shared content publication archive form"""
@@ -708,7 +708,7 @@
@pagelet_config(name='wf-delete.html', context=IWfSharedContent, layer=IPyAMSLayer,
permission=MANAGE_CONTENT_PERMISSION)
@ajax_config(name='wf-delete.json', context=IWfSharedContent, layer=IPyAMSLayer,
- permission=MANAGE_CONTENT_PERMISSION, base=WorkflowContentTransitionAJAXForm)
+ permission=MANAGE_CONTENT_PERMISSION, base=AJAXAddForm)
class SharedContentDeleteForm(WorkflowContentTransitionForm):
"""Shared content delete form"""