Commit 16d8bf86 authored by Rafael Monnerat's avatar Rafael Monnerat

is_bt5_installation_over is always true

This method requires a serious refactor to fix the progress bar
at Configurator.
parent 6f2ea57c
...@@ -389,16 +389,12 @@ class ConfiguratorTool(BaseTool): ...@@ -389,16 +389,12 @@ class ConfiguratorTool(BaseTool):
global installation_status global installation_status
portal_activities = self.getPortalObject().portal_activities portal_activities = self.getPortalObject().portal_activities
is_bt5_installation_over = (portal_activities.countMessageWithTag( if 0 == len(portal_activities.getMessageList()):
'initialERP5Setup') == 0)
if 0 == len(portal_activities.getMessageList()) and \
is_bt5_installation_over:
html = self.ConfiguratorTool_viewSuccessfulConfigurationMessageRenderer() html = self.ConfiguratorTool_viewSuccessfulConfigurationMessageRenderer()
else: else:
if is_bt5_installation_over: # only if bt5s are installed start tracking number of activities
# only if bt5s are installed start tracking number of activities activity_list = portal_activities.getMessageList()
activity_list = portal_activities.getMessageList() installation_status['activity_list'].append(len(activity_list))
installation_status['activity_list'].append(len(activity_list))
html = self.ConfiguratorTool_viewRunningInstallationMessage( html = self.ConfiguratorTool_viewRunningInstallationMessage(
installation_status = installation_status) installation_status = installation_status)
# set encoding as this is usually called from asynchronous JavaScript call # set encoding as this is usually called from asynchronous JavaScript call
......
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