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

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