Commit 58dd8750 authored by wenjie.zheng's avatar wenjie.zheng

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

parent e5c3b871
......@@ -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