Commit e321d2a6 authored by Sebastien Robin's avatar Sebastien Robin

some provider actions providing nothing where not properly

removed (like portal_undo). this patch fix migration of very
old sites

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38551 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d87341f5
......@@ -48,6 +48,10 @@ def migrateNonProviders(portal_actions):
txn.note(msg)
portal_actions._actions += provider._actions
del provider._actions
if (getattr(provider, 'listActionInfos', None) is None and
getattr(provider, '_listActionInfos', None) is None and
getattr(provider, 'getActionListFor', None) is None and
not(IActionProvider_providedBy(provider))):
action_providers.remove(provider_name)
portal_actions.action_providers = tuple(action_providers)
......
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