@log_call
def metadef_tag_get_by_id(context, namespace_name, id):
 namespace = metadef_namespace_get(context, namespace_name)
 _check_namespace_visibility(context, namespace, namespace_name)
 for tag in DATA['metadef_tags']:
  if ((tag['namespace_id'] == namespace['id']) and (tag['id'] == id)):
   return tag
 else:
  msg = (_('Metadata definition tag not found for id=%s') % id)
  LOG.warn(msg)
  raise exception.MetadefTagNotFound(msg)

@ log_call def metadef_tag_get_by_id ( context , namespace_name , id ) : namespace = metadef_namespace_get ( context , namespace_name ) _check_namespace_visibility ( context , namespace , namespace_name ) for tag in DATA [ 'metadef_tags' ] : if ( ( tag [ 'namespace_id' ] == namespace [ 'id' ] ) and ( tag [ 'id' ] == id ) ) : return tag else : msg = ( _ ( 'Metadata definition tag not found for id=%s' ) % id ) LOG . warn ( msg ) raise exception . MetadefTagNotFound ( msg )
get a metadef tag .