commit/galaxy-central: dannon: Fix chunk-serving logic for tabular files.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/3840c86e34b7/ changeset: 3840c86e34b7 user: dannon date: 2012-08-17 19:55:37 summary: Fix chunk-serving logic for tabular files. affected #: 1 file diff -r 9e9e104ad5c93a2268bb00cfae09b57a31ece13c -r 3840c86e34b77bbd0d7c2da0c4ff3e5004dc0fe4 lib/galaxy/datatypes/tabular.py --- a/lib/galaxy/datatypes/tabular.py +++ b/lib/galaxy/datatypes/tabular.py @@ -264,10 +264,10 @@ def display_data(self, trans, dataset, preview=False, filename=None, to_ext=None, chunk=None): #TODO Prevent failure when displaying extremely long > 50kb lines. + if chunk: + return self.get_chunk(trans, dataset, chunk) if to_ext or not preview: return self._serve_raw(trans, dataset, to_ext) - if chunk: - return self.get_chunk(trans, dataset, chunk) else: column_names = 'null' if dataset.metadata.column_names: @@ -644,4 +644,5 @@ """ file_ext='fli' MetadataElement( name="columns", default=2, desc="Number of columns", readonly=True, visible=False ) - MetadataElement( name="column_types", default=['str', 'str'], param=metadata.ColumnTypesParameter, desc="Column types", readonly=True, visible=False, no_value=[] ) \ No newline at end of file + MetadataElement( name="column_types", default=['str', 'str'], param=metadata.ColumnTypesParameter, desc="Column types", readonly=True, visible=False, no_value=[] ) + 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