commit/galaxy-central: dan: Fix for displaying metadata ColumnParameter type when columns is None.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/6f017bc991a6/ changeset: 6f017bc991a6 user: dan date: 2012-10-09 19:57:19 summary: Fix for displaying metadata ColumnParameter type when columns is None. affected #: 1 file diff -r 8ce7bbba361a93a1a4a50029a3fd6a6266c1934d -r 6f017bc991a6e4617488768532adb56d49c1a688 lib/galaxy/datatypes/metadata.py --- a/lib/galaxy/datatypes/metadata.py +++ b/lib/galaxy/datatypes/metadata.py @@ -345,13 +345,13 @@ def get_html_field( self, value=None, context={}, other_values={}, values=None, **kwd ): if values is None and context: - column_range = range( 1, context.columns+1, 1 ) + column_range = range( 1, ( context.columns or 0 ) + 1, 1 ) values = zip( column_range, column_range ) return RangeParameter.get_html_field( self, value=value, context=context, other_values=other_values, values=values, **kwd ) def get_html( self, value, context={}, other_values={}, values=None, **kwd ): if values is None and context: - column_range = range( 1, context.columns+1, 1 ) + column_range = range( 1, ( context.columns or 0 ) + 1, 1 ) values = zip( column_range, column_range ) return RangeParameter.get_html( self, value, context=context, other_values=other_values, values=values, **kwd ) 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)
-
Bitbucket