commit/galaxy-central: dan: Fix for preview display of tabular items when column_types is None.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/259a4e01f105/ changeset: 259a4e01f105 user: dan date: 2012-10-09 19:46:19 summary: Fix for preview display of tabular items when column_types is None. affected #: 1 file diff -r 79bb2432133f9b18450e142fc6b80ddab364b57e -r 259a4e01f105b6f7396292db3ae0971d049b6ce7 lib/galaxy/datatypes/tabular.py --- a/lib/galaxy/datatypes/tabular.py +++ b/lib/galaxy/datatypes/tabular.py @@ -274,12 +274,15 @@ column_names = dataset.metadata.column_names elif hasattr(dataset.datatype, 'column_names'): column_names = dataset.datatype.column_names + column_types = dataset.metadata.column_types + if not column_types: + column_types = [] return trans.fill_template( "/dataset/tabular_chunked.mako", dataset = dataset, chunk = self.get_chunk(trans, dataset, 0), column_number = dataset.metadata.columns, column_names = column_names, - column_types = dataset.metadata.column_types) + column_types = column_types ) def set_peek( self, dataset, line_count=None, is_multi_byte=False): super(Tabular, self).set_peek( dataset, line_count=line_count, is_multi_byte=is_multi_byte) 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