def archiver_dataset_show(context, data_dict=None): '''Return a details of the archival of a dataset, aggregated across its resources. :param id: the name or id of the dataset :type id: string :rtype: dictionary ''' id_ = _get_or_bust(data_dict, 'id') dataset = model.Package.get(id_) if not dataset: raise ObjectNotFound archivals = Archival.get_for_package(dataset.id) archival_dict = aggregate_archivals_for_a_dataset(archivals) p.toolkit.check_access('archiver_dataset_show', context, data_dict) return archival_dict