commit/galaxy-central: dan: Fix for DynamicOptions AdditionalValueFilter when columns have not been assigned and to give value preference over name.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/c85032480141/ Changeset: c85032480141 User: dan Date: 2014-12-03 21:52:56+00:00 Summary: Fix for DynamicOptions AdditionalValueFilter when columns have not been assigned and to give value preference over name. Affected #: 1 file diff -r 37cf9cd764fa3a306e5a74ec05ddfe4046060ae7 -r c85032480141d4280903fc11382e38e9176f39b0 lib/galaxy/tools/parameters/dynamic_options.py --- a/lib/galaxy/tools/parameters/dynamic_options.py +++ b/lib/galaxy/tools/parameters/dynamic_options.py @@ -301,8 +301,11 @@ add_value = [] for i in range( self.dynamic_option.largest_index + 1 ): add_value.append( "" ) - add_value[self.dynamic_option.columns['value']] = self.value - add_value[self.dynamic_option.columns['name']] = self.name + value_col = self.dynamic_option.columns.get( 'value', 0 ) + name_col = self.dynamic_option.columns.get( 'name', value_col ) + # Set name first, then value, in case they are the same column + add_value[ name_col ] = self.name + add_value[ value_col ] = self.value if self.index is not None: rval.insert( self.index, add_value ) else: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org