[Erp5-report] r42824 nicolas.dumazet - /erp5/trunk/products/ERP5Type/Tool/BaseTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jan 31 15:05:05 CET 2011


Author: nicolas.dumazet
Date: Mon Jan 31 15:05:05 2011
New Revision: 42824

URL: http://svn.erp5.org?rev=42824&view=rev
Log:
We really never want our Tools to be indexable.

This causes problems with Tools that do not have a portal type
but still inherit from BaseTool, for instance Catalog Tool, Class Tool,
etc...:
when trying to index those tools, group methods such as isResourceType
are called on the Tools, and those that are not portal type classes
cause crashes, because they wont have such methods.

Modified:
    erp5/trunk/products/ERP5Type/Tool/BaseTool.py

Modified: erp5/trunk/products/ERP5Type/Tool/BaseTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Tool/BaseTool.py?rev=42824&r1=42823&r2=42824&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Tool/BaseTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Tool/BaseTool.py [utf8] Mon Jan 31 15:05:05 2011
@@ -41,6 +41,7 @@ class BaseTool (UniqueObject, Folder):
     id = 'portal_base_tool'       # Override this
     meta_type = 'ERP5 Base Tool'  # Override this
     allowed_types = ()            # Override this
+    isIndexable = False
 
     # Declarative Security
     security = ClassSecurityInfo()



More information about the Erp5-report mailing list