Commit a47a7eee authored by Jean-Paul Smets's avatar Jean-Paul Smets

modified by JPS


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@281 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4b01b5a2
...@@ -15,8 +15,8 @@ context.portal_catalog.catalog_object(context.portal_categories,None) ...@@ -15,8 +15,8 @@ context.portal_catalog.catalog_object(context.portal_categories,None)
base_url = '/'.join(context.getPhysicalPath()) base_url = '/'.join(context.getPhysicalPath())
print "#### Indexing categories ####" print "#### Indexing categories ####"
#for id in list(context.portal_categories.objectIds()): for id in list(context.portal_categories.objectIds()):
# context.portal_activities.newMessage('SQLDict', '%s/portal_categories/%s' % (base_url, id), None, {}, 'recursiveImmediateReindexObject') 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) # We index simulation first to make sure we can calculate tests (ie. related quantity)
print "#### Indexing simulation ####" print "#### Indexing simulation ####"
...@@ -26,8 +26,7 @@ for id in list(context.portal_simulation.objectIds()): ...@@ -26,8 +26,7 @@ for id in list(context.portal_simulation.objectIds()):
for folder in context.portal_url.getPortalObject().objectValues(("ERP5 Folder",)): for folder in context.portal_url.getPortalObject().objectValues(("ERP5 Folder",)):
print "#### Indexing contents inside folder %s ####" % folder.id print "#### Indexing contents inside folder %s ####" % folder.id
for id in list(folder.objectIds()): 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') #context.portal_activities.newMessage('SQLDict', '%s/%s/%s' % (base_url, folder.getId(), id), None, {}, 'Folder_reindexAll')
return printed return printed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment