ERP5 tests currently don't load ZCML and some CMFCore z3 style interfaces are...

ERP5 tests currently don't load ZCML and some CMFCore z3 style interfaces are declared on ZCML only, which means some interface imports fail on test setups alone. This temporary commit makes tests run again while we figure out how to enable zcml loading on ERP5 tests (approved by jm)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29572 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f421de6e
......@@ -1653,11 +1653,14 @@ class ERP5Generator(PortalGenerator):
# Remove unused default actions
def removeActionsFromTool(tool, remove_list):
from Products.CMFCore.interfaces import IActionProvider
if not IActionProvider.providedBy(tool):
# On CMF 2.x, some tools (portal_membership)
# are no longer action providers
return
try:
from Products.CMFCore.interfaces import IActionProvider
if not IActionProvider.providedBy(tool):
# On CMF 2.x, some tools (portal_membership)
# are no longer action providers
return
except ImportError:
pass
action_id_list = [i.id for i in tool.listActions()]
remove_index_list = []
for i in remove_list:
......
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