details: http://www.bx.psu.edu/hg/galaxy/rev/ba9ee5828e7b changeset: 3162:ba9ee5828e7b user: Greg Von Kuster <greg@bx.psu.edu> date: Wed Dec 09 12:18:27 2009 -0500 description: Fix the recently introduced ColumnListParameter.from_html() method to handle multi-select lists - should fix at least the tabular2fasta broken functional test. diffstat: lib/galaxy/tools/parameters/basic.py | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diffs (20 lines): diff -r b400212305b6 -r ba9ee5828e7b lib/galaxy/tools/parameters/basic.py --- a/lib/galaxy/tools/parameters/basic.py Wed Dec 09 10:15:15 2009 -0500 +++ b/lib/galaxy/tools/parameters/basic.py Wed Dec 09 12:18:27 2009 -0500 @@ -769,7 +769,15 @@ Label convention prepends column number with a 'c', but tool uses the integer. This removes the 'c' when entered into a workflow. """ - if value.startswith("c"): + if type( value ) == list: + # We have a multi-select list + new_value = [] + for item in value: + if item.startswith( "c" ): + item = item[1:] + new_value.append( item ) + value = new_value + elif value and value.startswith( "c" ): value = value[1:] return super( ColumnListParameter, self ).from_html( value, trans, context ) def get_column_list( self, trans, other_values ):