Commit fd42eebf authored by Frédéric Escudié's avatar Frédéric Escudié
Browse files

Fix bug in GUI with param group order.

parent 34b06302
......@@ -227,10 +227,10 @@ class JFlowServer (object):
select = False
if 'filter_groups' in kwargs : filter_groups = kwargs['filter_groups'].split(',')
if 'select' in kwargs : select = kwargs['select'] in ['True', 'true', '1', 1]
wf_instances, wf_methodes = self.wfmanager.get_available_workflows(filter_groups = filter_groups , select = select)
for instance in wf_instances:
parameters, parameters_per_groups, groups = [], {}, ["default"]
parameters, parameters_per_groups, ordered_groups = [], {}, ["default"]
for param in instance.get_parameters():
# if it's a multiple action change the action by the name
if param.action == MiltipleAction:
......@@ -289,13 +289,14 @@ class JFlowServer (object):
if in parameters_per_groups:
else: parameters_per_groups[] = [hash_param]
if not in ordered_groups:
"help": instance.description,
"class": instance.__class__.__name__,
"parameters": parameters,
"parameters_per_groups": parameters_per_groups,
"groups": list(set(groups))})
"groups": ordered_groups})
return workflows
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