Commit 8a3e0a32 authored by wenjie.zheng's avatar wenjie.zheng

patches/ActionTool.py: stop adding portal_workflow to action provider by script.

parent ea00f588
......@@ -52,12 +52,8 @@ def listFilteredActionsFor(self, object=None):
Finally, this patch detects tools that are no longer action providers and
invokes the migration of their actions to portal_actions
"""
actions = []
listActionProviderlist = list(self.listActionProviders())
if 'portal_workflow' not in listActionProviderlist:
listActionProviderlist.append('portal_workflow')
for provider_name in listActionProviderlist:
for provider_name in listActionProviders():
# Include actions from specific tools.
provider = getattr(self, provider_name)
if hasattr(provider, 'getActionListFor'):
......
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