Commit 56379087 authored by Jérome Perrin's avatar Jérome Perrin

reindex the whole site before running tests. This temporary commit is only a...

reindex the whole site before running tests. This temporary commit is only a workaround, because many tests cannot be executed because a bug prevent business template paths items to be initially indexed


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4100 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0c4cf197
......@@ -323,6 +323,11 @@ def setupERP5Site(business_template_list=(), app=None, portal_name=portal_name,
if hot_reindexing:
setattr(app,'isIndexable',1)
portal.portal_catalog.manage_hotReindexAll()
# XXX: currently a bug prevent BusinessTemplates' Path items to be reindexed
skins_tool = getToolByName(portal, 'portal_skins', None)
skins_tool["erp5_core"].ERP5Site_reindexAll()
portal_activities = getattr(portal,'portal_activities',None)
if portal_activities is not None:
while len(portal_activities.getMessageList()) > 0:
......
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