From 0dd3d4564e9463c9ce79291d46e5cdd5f7852fa7 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Tue, 25 May 2004 09:37:52 +0000 Subject: [PATCH] check again if the portal isIndexable, it was removed by mystake by jp git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@916 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ZSQLCatalog/SQLCatalog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py index a3e2e5d25d..fd98dd5065 100755 --- a/product/ZSQLCatalog/SQLCatalog.py +++ b/product/ZSQLCatalog/SQLCatalog.py @@ -345,9 +345,9 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base): # LOG("Call SQL Method %s with args:" % method_name,0, str(kw)) # Alter row # Create row - #try: - if 1: - #LOG("Call SQL Method %s with args:" % method_name,0, str(kw)) + zope_root = self.getPortalObject().aq_parent + root_indexable = int(getattr(zope_root,'isIndexable',1)) + if root_indexable: method(**kw) #except: # # # This is a real LOG message -- 2.30.9