From c0b016a7098e3a30df48cb12741400e98bb35c08 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Wed, 18 Feb 2009 13:49:42 +0000 Subject: [PATCH] Remove catalog method custom wrapping, as it prevents indexation method from accessing each other (useful when one is a python script wishing to access ZSQLMethods to do actual indexation). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25607 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ZSQLCatalog/SQLCatalog.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py index 5a8be0c5e8..009b039187 100644 --- a/product/ZSQLCatalog/SQLCatalog.py +++ b/product/ZSQLCatalog/SQLCatalog.py @@ -1233,10 +1233,6 @@ class Catalog(Folder, if not self.isIndexable(): return - portal_catalog = self.getSiteRoot().portal_catalog # XXX-JPS - This is a hardcoded name. Weird - # Isn't self == self.getSiteRoot().portal_catalog - # in this case ? - # Reminder about optimization: It might be possible to issue just one # query to get enought results to check uid & path consistency. path_uid_dict = {} @@ -1412,8 +1408,6 @@ class Catalog(Folder, append(value) kw[arg] = value_list - method = aq_base(method).__of__(portal_catalog) # Use method in - # the context of portal_catalog # Alter/Create row try: #start_time = DateTime() -- 2.30.9