Commit 6a1aaefc authored by Jean-Paul Smets's avatar Jean-Paul Smets

probably improved by jps


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@94 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8d3d37a1
......@@ -20,14 +20,14 @@ print "#### Indexing categories ####"
# We index simulation first to make sure we can calculate tests (ie. related quantity)
print "#### Indexing simulation ####"
#for id in list(context.portal_simulation.objectIds()):
# context.portal_activities.newMessage('SQLDict', '%s/portal_simulation/%s' % (base_url, id), {}, 'immediateReindexObject')
for id in list(context.portal_simulation.objectIds()):
context.portal_activities.newMessage('SQLDict', '%s/portal_simulation/%s' % (base_url, id), {}, 'immediateReindexObject')
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
pass
#context.portal_activities.newMessage('SQLDict', '%s/%s/%s' % (base_url, folder.getId(), id), {}, 'recursiveImmediateReindexObject')
context.portal_activities.newMessage('SQLDict', '%s/%s/%s' % (base_url, folder.getId(), id), {}, 'Folder_reindexAll')
#context.portal_activities.newMessage('SQLDict', '%s/%s/%s' % (base_url, folder.getId(), id), {}, 'Folder_reindexAll')
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