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

'il est super' dixit jps


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@81 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6751f26a
...@@ -15,17 +15,19 @@ context.portal_catalog.catalog_object(context.portal_categories,None) ...@@ -15,17 +15,19 @@ 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), {}, 'recursiveImmediateReindexObject') # context.portal_activities.newMessage('SQLDict', '%s/portal_categories/%s' % (base_url, id), {}, 'recursiveImmediateReindexObject')
# We index simulation first to make sure we can calculate tests # We index simulation first to make sure we can calculate tests (ie. related quantity)
print "#### Indexing simulation ####" print "#### Indexing simulation ####"
for id in list(context.portal_simulation.objectIds()): #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), {}, 'immediateReindexObject')
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()):
context.portal_activities.newMessage('SQLDict', '%s/%s/%s' % (base_url, folder.getId(), id), {}, 'recursiveImmediateReindexObject') #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')
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