[Erp5-report] r20596 - /erp5/trunk/products/ERP5Type/tests/SecurityTestCase.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 17 11:49:55 CEST 2008
Author: jerome
Date: Thu Apr 17 11:49:54 2008
New Revision: 20596
URL: http://svn.erp5.org?rev=20596&view=rev
Log:
don't display state/transitions info about interaction workflows
Modified:
erp5/trunk/products/ERP5Type/tests/SecurityTestCase.py
Modified: erp5/trunk/products/ERP5Type/tests/SecurityTestCase.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/SecurityTestCase.py?rev=20596&r1=20595&r2=20596&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/SecurityTestCase.py (original)
+++ erp5/trunk/products/ERP5Type/tests/SecurityTestCase.py Thu Apr 17 11:49:54 2008
@@ -36,6 +36,7 @@
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type import Permissions
+from Products.ERP5.InteractionWorkflow import InteractionWorkflowDefinition
from Products.DCWorkflow import Guard
def formatNameUnion(names):
@@ -201,6 +202,8 @@
for wf in self.workflow_tool.getWorkflowsFor(document) or []:
if wf.getId() == 'edit_workflow':
continue
+ if isinstance(wf, InteractionWorkflowDefinition):
+ continue
for wf_transition_id in wf._getWorkflowStateOf(
document).getTransitions():
wf_transition = wf.transitions[wf_transition_id]
More information about the Erp5-report
mailing list