Commit 190710d5 authored by Nicolas Dumazet's avatar Nicolas Dumazet

Chain changes on workflow tool do not trigger manage_changeWorkflows; but

we need to reset accessors after such changes. Add them as triggers.

This contributes to fixing testBase


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43096 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7fd5f4ce
......@@ -37,8 +37,12 @@ class PortalTypeClassInteractor(Interactor):
and dynamic properties.
"""
def install(self):
# changing chains or workflows on Workflow Tool
from Products.CMFCore.WorkflowTool import WorkflowTool
self.on(WorkflowTool.manage_changeWorkflows).doAfter(self.resetDynamic)
self.on(WorkflowTool.setDefaultChain).doAfter(self.resetDynamic)
self.on(WorkflowTool.setChainForPortalTypes).doAfter(self.resetDynamic)
from Products.DCWorkflow.Transitions import Transitions
self.on(Transitions.addTransition).doAfter(self.resetDynamic)
self.on(Transitions.deleteTransitions).doAfter(self.resetDynamic)
......@@ -46,6 +50,7 @@ class PortalTypeClassInteractor(Interactor):
self.on(TransitionDefinition.setProperties).doAfter(self.resetDynamic)
from Products.DCWorkflow.Variables import Variables
self.on(Variables.setStateVar).doAfter(self.resetDynamic)
from Products.Localizer.Localizer import Localizer
self.on(Localizer.add_language).doAfter(self.resetDynamic)
self.on(Localizer.del_language).doAfter(self.resetDynamic)
......
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