commit/galaxy-central: dan: Fix for TabularToolDataTable.get_column_name_list() when value column is overloaded by e.g. name.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/966fbc93c483/ Changeset: 966fbc93c483 Branch: next-stable User: dan Date: 2013-05-23 17:11:37 Summary: Fix for TabularToolDataTable.get_column_name_list() when value column is overloaded by e.g. name. Affected #: 1 file diff -r 064ea784eae74cdb7b4ac0319ec0aa13ee55fcbd -r 966fbc93c483970092b677f17886e86060941093 lib/galaxy/tools/data/__init__.py --- a/lib/galaxy/tools/data/__init__.py +++ b/lib/galaxy/tools/data/__init__.py @@ -297,9 +297,12 @@ found_column = False for name, index in self.columns.iteritems(): if index == i: - rval.append( name ) + if not found_column: + rval.append( name ) + elif name == 'value': + #the column named 'value' always has priority over other named columns + rval[ -1 ] = name found_column = True - break if not found_column: rval.append( None ) return rval 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