1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/3070455afbdd/ changeset: r5236:3070455afbdd user: kanwei date: 2011-03-18 19:12:10 summary: set_peek should check for None, not false affected #: 3 files (36 bytes) --- a/lib/galaxy/datatypes/data.py Fri Mar 18 13:51:51 2011 -0400 +++ b/lib/galaxy/datatypes/data.py Fri Mar 18 14:12:10 2011 -0400 @@ -422,7 +422,7 @@ dataset.peek = get_file_peek( dataset.file_name, is_multi_byte=is_multi_byte ) if line_count is None: # See if line_count is stored in the metadata - if dataset.metadata.data_lines: + if dataset.metadata.data_lines is not None: dataset.blurb = "%s %s" % ( util.commaify( str(dataset.metadata.data_lines) ), inflector.cond_plural(dataset.metadata.data_lines, "line") ) else: # Number of lines is not known ( this should not happen ), and auto-detect is --- a/lib/galaxy/datatypes/interval.py Fri Mar 18 13:51:51 2011 -0400 +++ b/lib/galaxy/datatypes/interval.py Fri Mar 18 14:12:10 2011 -0400 @@ -66,7 +66,7 @@ dataset.peek = data.get_file_peek( dataset.file_name, is_multi_byte=is_multi_byte ) if line_count is None: # See if line_count is stored in the metadata - if dataset.metadata.data_lines: + if dataset.metadata.data_lines is not None: dataset.blurb = "%s regions" % util.commaify( str( dataset.metadata.data_lines ) ) else: # Number of lines is not known ( this should not happen ), and auto-detect is --- a/lib/galaxy/datatypes/tabular.py Fri Mar 18 13:51:51 2011 -0400 +++ b/lib/galaxy/datatypes/tabular.py Fri Mar 18 14:12:10 2011 -0400 @@ -398,7 +398,7 @@ dataset.peek = data.get_file_peek( dataset.file_name, is_multi_byte=is_multi_byte ) if line_count is None: # See if line_count is stored in the metadata - if dataset.metadata.data_lines: + if dataset.metadata.data_lines is not None: dataset.blurb = "%s genomic coordinates" % util.commaify( str( dataset.metadata.data_lines ) ) else: # Number of lines is not known ( this should not happen ), and auto-detect is 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.