Commit dc1ad3fc authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 0a2d2ab2
......@@ -169,13 +169,14 @@ class Workflow(threading.Thread):
return odict
def get_parameters_per_groups(self):
parameters = {}
parameters, parameters_order = {}, []
for param in self.parameters:
if param.group not in parameters_order: parameters_order.append(param.group)
if parameters.has_key(param.group):
parameters[param.group].append(param)
else:
parameters[param.group] = [param]
return parameters
return [parameters, parameters_order]
def add_component(self, component_name, args=[], kwargs={}, component_prefix="default"):
# first build and check if this component is OK
......
Supports Markdown
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