def archiver_resource_show(context, data_dict=None): '''Return a details of the archival of a resource :param id: the id of the resource :type id: string :rtype: dictionary ''' id_ = _get_or_bust(data_dict, 'id') archival = Archival.get_for_resource(id_) if archival is None: raise ObjectNotFound archival_dict = archival.as_dict() p.toolkit.check_access('archiver_resource_show', context, data_dict) return archival_dict