Commit 005b7208 authored by Ivan Tyagov's avatar Ivan Tyagov

Do not blindly rely that server will obey specification and always return this.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26356 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7fa2ef1d
...@@ -789,9 +789,10 @@ class WizardTool(BaseTool): ...@@ -789,9 +789,10 @@ class WizardTool(BaseTool):
server_url = self.getServerUrl() + self.getServerRoot() server_url = self.getServerUrl() + self.getServerRoot()
server_response = self._callRemoteMethod('getBT5FilesForBusinessConfiguration', server_url) server_response = self._callRemoteMethod('getBT5FilesForBusinessConfiguration', server_url)
## save erp5_uid which will make it possible to distingush different business conf for client ## save erp5_uid which will make it possible to distingush different business conf for client
current_bc_index = server_response['server_buffer'].get('current_bc_index', None) if server_response.get('server_buffer', None) is not None:
if current_bc_index is not None: current_bc_index = server_response['server_buffer'].get('current_bc_index', None)
self._setServerInfo(current_bc_index = current_bc_index) if current_bc_index is not None:
self._setServerInfo(current_bc_index = current_bc_index)
self.installBT5FilesFromServer(server_response, True) self.installBT5FilesFromServer(server_response, True)
server_response = self._callRemoteMethod('finalizeInstallation', server_url) server_response = self._callRemoteMethod('finalizeInstallation', server_url)
LOG("Wizard", INFO, LOG("Wizard", INFO,
......
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