#NEWLINE# def __init__( self , property_name , property_type , constraint ) : #NEWLINE# #INDENT# self . property_name = property_name #NEWLINE# self . property_type = property_type #NEWLINE# self . constraint_value = constraint [ self . constraint_key ] #NEWLINE# self . constraint_value_msg = self . constraint_value #NEWLINE# if ( self . property_type in scalarunit . ScalarUnit . SCALAR_UNIT_TYPES ) : #NEWLINE# #INDENT# self . constraint_value = self . _get_scalarunit_constraint_value ( ) #NEWLINE# #UNINDENT# if ( property_type not in self . valid_prop_types ) : #NEWLINE# #INDENT# msg = ( _ ( 'Property "%(ctype)s" is not valid for data type "%(dtype)s".' ) % dict ( ctype = self . constraint_key , dtype = property_type ) ) #NEWLINE# ExceptionCollector . appendException ( InvalidSchemaError ( message = msg ) )