def validate_value(self, value):
if self.readonly:<EOL><INDENT>raise ValidationError(self.record, "<STR_LIT>".format(self.name))<EOL><DEDENT>if value not in (None, self._unset):<EOL><INDENT>if self.supported_types and not isinstance(value, tuple(self.supported_types)):<EOL><INDENT>raise ValidationError(self.record, "<STR_LIT>".format(<EOL>self.name,<EOL>'<STR_LIT:U+002CU+0020>'.join([repr(t.__name__) for t in self.supported_types]),<EOL>type(value).__name__)<EOL>)<EOL><DEDENT><DEDENT>
Validate value is an acceptable type during set_python operation