Mercurial > repos > cathywise > truststore_browse
comparison TrustStoreGalaxyBrowse.py @ 13:da8958ad788e
Try again.
| author | Wise, Catherine (Digital, Acton) <Catherine.Wise@csiro.au> |
|---|---|
| date | Thu, 25 Jun 2015 09:05:29 +1000 |
| parents | 0c3f64e3c8ff |
| children | c7287129f37f |
comparison
equal
deleted
inserted
replaced
| 12:0c3f64e3c8ff | 13:da8958ad788e |
|---|---|
| 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=extension) | 201 ext = sniff.handle_uploaded_dataset_file(filename, datatypes_registry, ext=ext) |
| 202 print("Guessed file type: " + ext) | 202 print("Guessed file type: " + ext) |
| 203 metadata_file.write( | 203 metadata_file.write( |
| 204 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)) |
| 205 else: | 205 else: |
| 206 print("Store is damaged or we don't have sufficient access.") | 206 print("Store is damaged or we don't have sufficient access.") |
