Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
jflow
Commits
fd42eebf
Commit
fd42eebf
authored
Mar 09, 2016
by
Frédéric Escudié
Browse files
Fix bug in GUI with param group order.
parent
34b06302
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jflow/server.py
View file @
fd42eebf
...
...
@@ -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
param
.
group
in
parameters_per_groups
:
parameters_per_groups
[
param
.
group
].
append
(
hash_param
)
else
:
parameters_per_groups
[
param
.
group
]
=
[
hash_param
]
groups
.
append
(
param
.
group
)
if
param
.
group
not
in
ordered_groups
:
ordered_groups
.
append
(
param
.
group
)
workflows
.
append
({
"name"
:
instance
.
name
,
"help"
:
instance
.
description
,
"class"
:
instance
.
__class__
.
__name__
,
"parameters"
:
parameters
,
"parameters_per_groups"
:
parameters_per_groups
,
"groups"
:
list
(
set
(
groups
))
})
"groups"
:
ordered_
groups
})
return
workflows
@
cherrypy
.
expose
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment