def tag_show(context, data_dict):
 model = context['model']
 id = _get_or_bust(data_dict, 'id')
 include_datasets = asbool(data_dict.get('include_datasets', False))
 tag = model.Tag.get(id, vocab_id_or_name=data_dict.get('vocabulary_id'))
 context['tag'] = tag
 if (tag is None):
  raise NotFound
 _check_access('tag_show', context, data_dict)
 return model_dictize.tag_dictize(tag, context, include_datasets=include_datasets)

def tag_show ( context , data_dict ) : model = context [ 'model' ] id = _get_or_bust ( data_dict , 'id' ) include_datasets = asbool ( data_dict . get ( 'include_datasets' , False ) ) tag = model . Tag . get ( id , vocab_id_or_name = data_dict . get ( 'vocabulary_id' ) ) context [ 'tag' ] = tag if ( tag is None ) : raise NotFound _check_access ( 'tag_show' , context , data_dict ) return model_dictize . tag_dictize ( tag , context , include_datasets = include_datasets )
return the details of a tag and all its datasets .