[Erp5-report] r29569 - /erp5/trunk/products/ERP5/ERP5Site.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Oct 12 17:08:14 CEST 2009
Author: leonardo
Date: Mon Oct 12 17:08:13 2009
New Revision: 29569
URL: http://svn.erp5.org?rev=29569&view=rev
Log:
in CMF2.x some tools stop being action providers. Don't try to remove actions from them (approved by jm with caveat that we will have to find out where these actions went)
Modified:
erp5/trunk/products/ERP5/ERP5Site.py
Modified: erp5/trunk/products/ERP5/ERP5Site.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/ERP5Site.py?rev=29569&r1=29568&r2=29569&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/ERP5Site.py [utf8] (original)
+++ erp5/trunk/products/ERP5/ERP5Site.py [utf8] Mon Oct 12 17:08:13 2009
@@ -1653,6 +1653,11 @@
# 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
action_id_list = [i.id for i in tool.listActions()]
remove_index_list = []
for i in remove_list:
More information about the Erp5-report
mailing list