From 6f0e9235944ec5556863d782094720cf176980e1 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Thu, 26 Aug 2004 15:29:59 +0000 Subject: [PATCH] merged git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1443 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ZSQLCatalog/SQLCatalog.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py index d394b039bc..70fbac0adb 100755 --- a/product/ZSQLCatalog/SQLCatalog.py +++ b/product/ZSQLCatalog/SQLCatalog.py @@ -385,19 +385,11 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base): kw['uid'] = index kw['insert_catalog_line'] = insert_catalog_line # Alter/Create row - zope_root = getToolByName(self, 'portal_url').getPortalObject().aq_parent - root_indexable = int(getattr(zope_root,'isIndexable',1)) - if root_indexable: - LOG("Call SQL Method %s with args:" % method_name,0, str(kw)) - method(**kw) - # LOG - # Alter row - # Create row try: - zope_root = self.getPortalObject().aq_parent + zope_root = getToolByName(self, 'portal_url').getPortalObject().aq_parent root_indexable = int(getattr(zope_root,'isIndexable',1)) if root_indexable: - #LOG("Call SQL Method %s with args:" % method_name,0, str(kw)) + LOG("Call SQL Method %s with args:" % method_name,0, str(kw)) method(**kw) except: LOG("SQLCatalog Warning: could not catalog object with method %s" % method_name,100, str(path)) -- 2.30.9