[hg] galaxy 3158: Remove "c" prepended to column numbers from Co...
details: http://www.bx.psu.edu/hg/galaxy/rev/fdb34b7858df changeset: 3158:fdb34b7858df user: Kanwei Li <kanwei@gmail.com> date: Tue Dec 08 13:25:33 2009 -0500 description: Remove "c" prepended to column numbers from Column parameters when entered in workflow diffstat: lib/galaxy/tools/parameters/basic.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diffs (18 lines): diff -r 022a8c94883f -r fdb34b7858df lib/galaxy/tools/parameters/basic.py --- a/lib/galaxy/tools/parameters/basic.py Tue Dec 08 11:46:13 2009 -0500 +++ b/lib/galaxy/tools/parameters/basic.py Tue Dec 08 13:25:33 2009 -0500 @@ -764,6 +764,14 @@ self.accept_default = string_as_bool( elem.get( "accept_default", False )) self.data_ref = elem.get( "data_ref", None ) self.is_dynamic = True + def from_html( self, value, trans=None, context={} ): + """ + 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"): + value = value[1:] + return super( ColumnListParameter, self ).from_html( value, trans, context ) def get_column_list( self, trans, other_values ): """ Generate a select list containing the columns of the associated
participants (1)
-
Greg Von Kuster