comparison TrustStoreGalaxyBrowse.py @ 11:9ada74e8915e

Try again.
author Wise, Catherine (Digital, Acton) <Catherine.Wise@csiro.au>
date Thu, 25 Jun 2015 08:41:33 +1000
parents 7301c2e96fce
children 0c3f64e3c8ff
comparison
equal deleted inserted replaced
10:7301c2e96fce 11:9ada74e8915e
191 target_output_filename = file_name 191 target_output_filename = file_name
192 dataset = "new_primary_dataset" 192 dataset = "new_primary_dataset"
193 first = False 193 first = False
194 else: 194 else:
195 target_output_filename = os.path.normpath(os.path.join(extra_files_path, name)) 195 target_output_filename = os.path.normpath(os.path.join(extra_files_path, name))
196 ext = sniff.handle_uploaded_dataset_file(filename, datatypes_registry, ext=ext)
197 metadata_file.write(
198 metadata_to_json(dataset_id, target_output_filename, name, ext, data_type))
199 download = truststore.getFile(store, location) 196 download = truststore.getFile(store, location)
200 if download is None: 197 if download is None:
201 print("File %s not found." % location.name) 198 print("File %s not found." % location.name)
202 sys.exit(4) 199 sys.exit(4)
203 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)
202 metadata_file.write(
203 metadata_to_json(dataset_id, target_output_filename, name, ext, data_type))
204 else: 204 else:
205 print("Store is damaged or we don't have sufficient access.") 205 print("Store is damaged or we don't have sufficient access.")
206 sys.exit(4) 206 sys.exit(4)
207 207
208 208