Commit 080fc0b0 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

patches/DCWorkflow.py: add universal method getPortalType.

parent a49c0058
...@@ -690,6 +690,10 @@ def updateRoleMappings(self, REQUEST=None): ...@@ -690,6 +690,10 @@ def updateRoleMappings(self, REQUEST=None):
DCWorkflowDefinition.updateRoleMappings = updateRoleMappings DCWorkflowDefinition.updateRoleMappings = updateRoleMappings
def DCWorkflowDefinition_getPortalType(self):
return self.__class__.__name__
DCWorkflowDefinition.getPortalType = DCWorkflowDefinition_getPortalType
# this patch allows to get list of portal types for workflow # this patch allows to get list of portal types for workflow
def getPortalTypeListForWorkflow(self): def getPortalTypeListForWorkflow(self):
""" """
......
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