From a47a7eeeef875927e7789f24824a363380226e48 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Fri, 23 Jan 2004 15:49:13 +0000
Subject: [PATCH] modified by JPS

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@281 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/Coramy/skins/coramy_erp5/ERP5Site_reindexAll.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/product/Coramy/skins/coramy_erp5/ERP5Site_reindexAll.py b/product/Coramy/skins/coramy_erp5/ERP5Site_reindexAll.py
index 9a369c67eb..c5c4c3530d 100755
--- a/product/Coramy/skins/coramy_erp5/ERP5Site_reindexAll.py
+++ b/product/Coramy/skins/coramy_erp5/ERP5Site_reindexAll.py
@@ -15,8 +15,8 @@ context.portal_catalog.catalog_object(context.portal_categories,None)
 base_url = '/'.join(context.getPhysicalPath())
 
 print "#### Indexing categories ####"
-#for id in list(context.portal_categories.objectIds()):
-#  context.portal_activities.newMessage('SQLDict', '%s/portal_categories/%s' % (base_url, id), None, {}, 'recursiveImmediateReindexObject')
+for id in list(context.portal_categories.objectIds()):
+  context.portal_activities.newMessage('SQLDict', '%s/portal_categories/%s' % (base_url, id), None, {}, 'recursiveImmediateReindexObject')
 
 # We index simulation first to make sure we can calculate tests (ie. related quantity)
 print "#### Indexing simulation ####"
@@ -26,8 +26,7 @@ for id in list(context.portal_simulation.objectIds()):
 for folder in context.portal_url.getPortalObject().objectValues(("ERP5 Folder",)):
   print "#### Indexing contents inside folder %s ####" % folder.id
   for id in list(folder.objectIds()):
-    pass
-    #context.portal_activities.newMessage('SQLDict', '%s/%s/%s' % (base_url, folder.getId(), id), None, {}, 'recursiveImmediateReindexObject')
+    context.portal_activities.newMessage('SQLDict', '%s/%s/%s' % (base_url, folder.getId(), id), None, {}, 'recursiveImmediateReindexObject')
     #context.portal_activities.newMessage('SQLDict', '%s/%s/%s' % (base_url, folder.getId(), id), None, {}, 'Folder_reindexAll')
 
 return printed
-- 
2.30.9