Commit 50e82617 authored by Jérome Perrin's avatar Jérome Perrin

don't display state/transitions info about interaction workflows


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20596 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 56fded33
...@@ -36,6 +36,7 @@ from Products.DCWorkflow.Transitions import TRIGGER_USER_ACTION ...@@ -36,6 +36,7 @@ from Products.DCWorkflow.Transitions import TRIGGER_USER_ACTION
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type import Permissions from Products.ERP5Type import Permissions
from Products.ERP5.InteractionWorkflow import InteractionWorkflowDefinition
from Products.DCWorkflow import Guard from Products.DCWorkflow import Guard
def formatNameUnion(names): def formatNameUnion(names):
...@@ -201,6 +202,8 @@ class SecurityTestCase(ERP5TypeTestCase): ...@@ -201,6 +202,8 @@ class SecurityTestCase(ERP5TypeTestCase):
for wf in self.workflow_tool.getWorkflowsFor(document) or []: for wf in self.workflow_tool.getWorkflowsFor(document) or []:
if wf.getId() == 'edit_workflow': if wf.getId() == 'edit_workflow':
continue continue
if isinstance(wf, InteractionWorkflowDefinition):
continue
for wf_transition_id in wf._getWorkflowStateOf( for wf_transition_id in wf._getWorkflowStateOf(
document).getTransitions(): document).getTransitions():
wf_transition = wf.transitions[wf_transition_id] wf_transition = wf.transitions[wf_transition_id]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment