Commit 0ec78fb5 authored by Jérome Perrin's avatar Jérome Perrin

rename _getServerInfo in _updateParameterDictWithServerInfo, because it's

updating the dict in place, and not returning anything, as the _get prefix
would make think


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22399 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent db01d296
......@@ -305,7 +305,7 @@ class WizardTool(BaseTool):
witch_tool = self._getRemoteWitchTool(server_url)
parameter_dict = self.REQUEST.form
## add client arguments
self._getServerInfo(parameter_dict)
self._updateParameterDictWithServerInfo(parameter_dict)
## call remote method
try:
method = getattr(witch_tool, distant_method)
......@@ -349,8 +349,8 @@ class WizardTool(BaseTool):
self.setExpressConfigurationPreference(_server_to_preference_ids_map[item],
value)
def _getServerInfo(self, parameter_dict):
""" Return local saved server info settings. """
def _updateParameterDictWithServerInfo(self, parameter_dict):
"""Updates parameter_dict to include local saved server info settings. """
global _server_to_preference_ids_map
for key, value in _server_to_preference_ids_map.items():
parameter_dict[key] = self.getExpressConfigurationPreference(value, None)
......
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