Mercurial > repos > cathywise > truststore_browse
comparison TrustStoreGalaxyBrowse.py @ 12:0c3f64e3c8ff
Try again 2.
author | Wise, Catherine (Digital, Acton) <Catherine.Wise@csiro.au> |
---|---|
date | Thu, 25 Jun 2015 08:56:16 +1000 |
parents | 9ada74e8915e |
children | da8958ad788e |
comparison
equal
deleted
inserted
replaced
11:9ada74e8915e | 12:0c3f64e3c8ff |
---|---|
196 download = truststore.getFile(store, location) | 196 download = truststore.getFile(store, location) |
197 if download is None: | 197 if download is None: |
198 print("File %s not found." % location.name) | 198 print("File %s not found." % location.name) |
199 sys.exit(4) | 199 sys.exit(4) |
200 ungzip(download, target_output_filename) | 200 ungzip(download, target_output_filename) |
201 ext = sniff.handle_uploaded_dataset_file(target_output_filename, datatypes_registry, ext=ext) | 201 ext = sniff.handle_uploaded_dataset_file(target_output_filename, datatypes_registry, ext=extension) |
202 print("Guessed file type: " + ext) | |
202 metadata_file.write( | 203 metadata_file.write( |
203 metadata_to_json(dataset_id, target_output_filename, name, ext, data_type)) | 204 metadata_to_json(dataset_id, target_output_filename, name, ext, data_type)) |
204 else: | 205 else: |
205 print("Store is damaged or we don't have sufficient access.") | 206 print("Store is damaged or we don't have sufficient access.") |
206 sys.exit(4) | 207 sys.exit(4) |