def get(self, process_id): process = LibraryPrepShotgunProcess(int(process_id)) text = process.generate_echo_picklist() compressed_plate_name = process.normalization_process.compressed_plate\ .external_id name_pieces = [compressed_plate_name, "indices"] self.deliver_text(name_pieces, process, text)
def get(self, process_id): process = LibraryPrepShotgunProcess(int(process_id)) text = process.generate_echo_picklist() self.set_header('Content-Description', 'text/csv') self.set_header('Expires', '0') self.set_header('Cache-Control', 'no-cache') self.set_header( 'Content-Disposition', 'attachment; filename=' 'LibraryPrepShotgunSheet_%s.csv' % process_id) self.write(text) self.finish()