def resource_view_show(context, data_dict):
 model = context['model']
 id = _get_or_bust(data_dict, 'id')
 resource_view = model.ResourceView.get(id)
 if (not resource_view):
  _check_access('resource_view_show', context, data_dict)
  raise NotFound
 context['resource_view'] = resource_view
 context['resource'] = model.Resource.get(resource_view.resource_id)
 _check_access('resource_view_show', context, data_dict)
 return model_dictize.resource_view_dictize(resource_view, context)

def resource_view_show ( context , data_dict ) : model = context [ 'model' ] id = _get_or_bust ( data_dict , 'id' ) resource_view = model . ResourceView . get ( id ) if ( not resource_view ) : _check_access ( 'resource_view_show' , context , data_dict ) raise NotFound context [ 'resource_view' ] = resource_view context [ 'resource' ] = model . Resource . get ( resource_view . resource_id ) _check_access ( 'resource_view_show' , context , data_dict ) return model_dictize . resource_view_dictize ( resource_view , context )
return the metadata of a resource_view .