Commit 4d3bcb14 authored by wenjie.zheng's avatar wenjie.zheng

Transition.py: fix the problem that guard doesn't workflow for automatic method.

parent c578e448
...@@ -1045,7 +1045,7 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin): ...@@ -1045,7 +1045,7 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
if hot_reindexing: if hot_reindexing:
setattr(app,'isIndexable', 1) setattr(app,'isIndexable', 1)
portal.portal_catalog.manage_hotReindexAll() portal.portal_catalog.manage_hotReindexAll()
self.dynamicalWorkflowConversion() #self.dynamicalWorkflowConversion()
portal.portal_types.resetDynamicDocumentsOnceAtTransactionBoundary() portal.portal_types.resetDynamicDocumentsOnceAtTransactionBoundary()
self.getPortal().erp5_sql_connection.manage_test("update message_queue set processing_node=0, priority=1 where processing_node=-1") self.getPortal().erp5_sql_connection.manage_test("update message_queue set processing_node=0, priority=1 where processing_node=-1")
self.getPortal().erp5_sql_connection.manage_test("update message set processing_node=0, priority=2 where processing_node=-1") self.getPortal().erp5_sql_connection.manage_test("update message set processing_node=0, priority=2 where processing_node=-1")
......
...@@ -92,7 +92,6 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject): ...@@ -92,7 +92,6 @@ class Transition(IdAsReferenceMixin("transition_", "prefix"), XMLObject):
return self.guard return self.guard
def generateGuard(self): def generateGuard(self):
if self.trigger_type == TRIGGER_USER_ACTION:
if self.guard is None: if self.guard is None:
self.guard = Guard(permissions=self.getPermissionList(), self.guard = Guard(permissions=self.getPermissionList(),
roles=self.getRoleList(), roles=self.getRoleList(),
......
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