comparison TrustStoreGalaxyBrowse.py @ 15:8b88de25dd2c

More.
author Wise, Catherine (Digital, Acton) <Catherine.Wise@csiro.au>
date Thu, 25 Jun 2015 09:54:07 +1000
parents c7287129f37f
children bc3e29a97709
comparison
equal deleted inserted replaced
14:c7287129f37f 15:8b88de25dd2c
185 filename = "".join(c in SAFE_CHARS and c or '-' for c in location.name) 185 filename = "".join(c in SAFE_CHARS and c or '-' for c in location.name)
186 extension = os.path.splitext(filename)[1].strip(".") 186 extension = os.path.splitext(filename)[1].strip(".")
187 name = construct_multi_filename(hda_id, filename, extension) 187 name = construct_multi_filename(hda_id, filename, extension)
188 target_output_filename = None 188 target_output_filename = None
189 data_type = "new_primary_dataset" 189 data_type = "new_primary_dataset"
190 if first: 190 # if first:
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 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)