From 264affc022427009cf5e4fb312580b5fd8016f29 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Thu, 7 Apr 2005 06:46:27 +0000 Subject: [PATCH] Take it into account if the portal is indexable. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2840 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Document/Folder.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/product/ERP5Type/Document/Folder.py b/product/ERP5Type/Document/Folder.py index 7731b57776..4dc0abc71d 100755 --- a/product/ERP5Type/Document/Folder.py +++ b/product/ERP5Type/Document/Folder.py @@ -511,9 +511,10 @@ be a problem).""" Applies immediateReindexObject recursively """ # Reindex self - self.flushActivity(invoke = 0, method_id='immediateReindexObject') # This might create a recursive lock - self.flushActivity(invoke = 0, method_id='recursiveImmediateReindexObject') # This might create a recursive lock - if self.isIndexable: + root_indexable = int(getattr(self.getPortalObject(),'isIndexable',1)) + if self.isIndexable and root_indexable: + self.flushActivity(invoke = 0, method_id='immediateReindexObject') # This might create a recursive lock + self.flushActivity(invoke = 0, method_id='recursiveImmediateReindexObject') # This might create a recursive lock self.immediateReindexObject(*args, **kw) # Reindex contents for c in self.objectValues(): -- 2.30.9