Commit 70d3c3f9 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Index templates.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1733 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4832ceef
......@@ -16,6 +16,11 @@ print "#### Indexing simulation ####"
for o in list(context.portal_simulation.objectValues()):
o.activate(passive_commit=1).immediateReindexObject()
# We index templates secondly
print "#### Indexing templates ####"
for o in list(context.portal_templates.objectValues()):
o.activate(passive_commit=1).immediateReindexObject()
# Then we index everything except inventories
for folder in context.portal_url.getPortalObject().objectValues(("ERP5 Folder",)):
print "#### Indexing contents inside folder %s ####" % folder.id
......
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