Commit 6c90c7e8 authored by wenjie.zheng's avatar wenjie.zheng

PortalTypeClassInteractor.py: add compatibility of workflow, transition, variable _edit function.

parent b49af4f4
......@@ -28,7 +28,7 @@
##############################################################################
from Products.ERP5Type.Interactor.Interactor import Interactor
from zLOG import LOG, INFO, WARNING
class PortalTypeClassInteractor(Interactor):
"""
This interactor handles all the calls to resetDynamicDocuments
......@@ -58,7 +58,19 @@ class PortalTypeClassInteractor(Interactor):
# New workflow compatibility
from Products.ERP5Type.ERP5Type import ERP5TypeInformation
self.on(ERP5TypeInformation.addTypeWorkflowList).doAfter(self.resetDynamic)
self.on(ERP5TypeInformation.setTypeWorkflowList).doAfter(self.resetDynamic)
self.on(ERP5TypeInformation._edit).doAfter(self.resetDynamic)
from Products.ERP5Workflow.Document.Workflow import Workflow
self.on(Workflow._delObject).doAfter(self.resetDynamic)
self.on(Workflow._edit).doAfter(self.resetDynamic)
from Products.ERP5Workflow.Document.Transition import Transition
self.on(Transition._delObject).doAfter(self.resetDynamic)
self.on(Transition._edit).doAfter(self.resetDynamic)
from Products.ERP5Workflow.Document.Variable import Variable
self.on(Variable._edit).doAfter(self.resetDynamic)
def resetDynamic(self, method_call_object, *args, **kw):
"""
......
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