Commit a4646adf authored by Rafael Monnerat's avatar Rafael Monnerat

Wait for all index/reindex before next build.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44951 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 97da2d2b
...@@ -383,7 +383,8 @@ class BusinessConfiguration(Item): ...@@ -383,7 +383,8 @@ class BusinessConfiguration(Item):
actions and Configurator requets actions and Configurator requets
""" """
kw = dict(tag="start", kw = dict(tag="start",
after_method_id="recursiveImmediateReindexObject") after_method_id=["recursiveImmediateReindexObject",
'immediateReindexObject'])
start = time.time() start = time.time()
LOG("CONFIGURATOR", INFO, LOG("CONFIGURATOR", INFO,
'Build process started for %s' % self.getRelativeUrl()) 'Build process started for %s' % self.getRelativeUrl())
...@@ -403,7 +404,9 @@ class BusinessConfiguration(Item): ...@@ -403,7 +404,9 @@ class BusinessConfiguration(Item):
time.time() - start)) time.time() - start))
if execute_after_setup_script: if execute_after_setup_script:
kw["after_method_id"] = ["buildItem", 'recursiveImmediateReindexObject'] kw["after_method_id"] = ["buildItem", 'immediateReindexObject', \
"recursiveImmediateReindexObject"]
self.activate(**kw).ERP5Site_afterConfigurationSetup() self.activate(**kw).ERP5Site_afterConfigurationSetup()
LOG("Business Configuration", INFO, LOG("Business Configuration", INFO,
"After setup script called (force) for %s : %s" % "After setup script called (force) for %s : %s" %
......
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