From 5eb2b56737cf6edb0517a6d8cedb405c0a65897d Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Mon, 31 Jan 2011 14:05:05 +0000
Subject: [PATCH] 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.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42824 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Tool/BaseTool.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/product/ERP5Type/Tool/BaseTool.py b/product/ERP5Type/Tool/BaseTool.py
index 511df9e3c4..f0a72e992e 100644
--- a/product/ERP5Type/Tool/BaseTool.py
+++ b/product/ERP5Type/Tool/BaseTool.py
@@ -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()
-- 
2.30.9