def add_pdb_files(request, dataset_id): """ Extracts pdb files out of zips, adds them to the dataset and removes the zip. Then adds all pdb files to the MR parameters :param dataset_id: dataset in which to find zip files :type dataset_id: integer :returns: 'true' for ajax if successful. """ thisMR = MRtask(dataset_id=dataset_id) thisMR.add_pdb_files(request.user.username) return HttpResponse("true")