#NEWLINE# @ staticmethod #NEWLINE# def generate_inv_schema_property_error( self , attr , value , valid_values ) : #NEWLINE# #INDENT# msg = ( _ ( 'Schema definition of "%(propname)s" has "%(attr)s" attribute with invalid value "%(value1)s". The value must be one of "%(value2)s".' ) % { #NEWLINE# #INDENT# 'propname' : self . name , #NEWLINE# 'attr' : attr , #NEWLINE# 'value1' : value , #NEWLINE# 'value2' : valid_values , #NEWLINE# #UNINDENT# } ) #NEWLINE# ExceptionCollector . appendException ( InvalidSchemaError ( message = self ) )