Commit 6a223036 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

handle display name for sub parameters

parent d8ceb308
......@@ -334,12 +334,18 @@ class Workflow(threading.Thread):
for param in params[param_name]:
sub_params_values = param.split(".")
if len(sub_params_values) == 2:
key = None
if sub_params_values[1] == "name":
key = "display_name"
else:
key = sub_params_values[1]
if not sub_params.has_key(sub_params_values[0]):
sub_params[sub_params_values[0]] = {sub_params_values[1]: params[param_name][param]}
sub_params[sub_params_values[0]] = {key: params[param_name][param]}
sub_params[sub_params_values[0]]["name"] = sub_params_values[0]
else:
sub_params[sub_params_values[0]][sub_params_values[1]] = params[param_name][param]
sub_params[sub_params_values[0]][key] = params[param_name][param]
else:
if param == "name": current_params["display_name"] = params[param_name]["name"]
if param == "name": current_params["display_name"] = params[param_name][param]
else: current_params[param] = params[param_name][param]
current_params[param] = params[param_name][param]
current_params["name"] = param_name
......
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