Commit 4014cffb authored by Jean-Paul Smets's avatar Jean-Paul Smets

modified by JPS


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@138 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 27df3651
......@@ -16,18 +16,18 @@ 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), {}, '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)
print "#### Indexing simulation ####"
for id in list(context.portal_simulation.objectIds()):
context.portal_activities.newMessage('SQLDict', '%s/portal_simulation/%s' % (base_url, id), {}, 'immediateReindexObject')
context.portal_activities.newMessage('SQLDict', '%s/portal_simulation/%s' % (base_url, id), None, {}, '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
#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), None, {}, 'recursiveImmediateReindexObject')
#context.portal_activities.newMessage('SQLDict', '%s/%s/%s' % (base_url, folder.getId(), id), None, {}, '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