comparison TrustStoreGalaxyBrowse.py @ 4:2ca750b9083c

Fix extra files directory.
author Catherine Wise <catherine.wise@csiro.au>
date Fri, 22 May 2015 09:25:27 +1000
parents 34bdad74ec64
children 3e8bd0d01725
comparison
equal deleted inserted replaced
3:34bdad74ec64 4:2ca750b9083c
115 115
116 output_filename = json_params.get('output', None) 116 output_filename = json_params.get('output', None)
117 output_data = all_params.get('output_data') 117 output_data = all_params.get('output_data')
118 extra_files_path, file_name, ext, out_data_name, hda_id, dataset_id = \ 118 extra_files_path, file_name, ext, out_data_name, hda_id, dataset_id = \
119 operator.itemgetter('extra_files_path', 'file_name', 'ext', 'out_data_name', 'hda_id', 'dataset_id')(output_data[0]) 119 operator.itemgetter('extra_files_path', 'file_name', 'ext', 'out_data_name', 'hda_id', 'dataset_id')(output_data[0])
120 extra_files_path = json_params['__new_file_path__']
120 121
121 url_params = urlparse.unquote(json_params['URL']).split(";") 122 url_params = urlparse.unquote(json_params['URL']).split(";")
122 if len(url_params) < 3: 123 if len(url_params) < 3:
123 print("The url we got back is malformed: "+ json_params['URL']) 124 print("The url we got back is malformed: "+ json_params['URL'])
124 sys.exit(5) 125 sys.exit(5)