webthing/property.py
def validate_value(self, value):
        """
        Validate new property value before setting it.

        value -- New value
        """
        if 'readOnly' in self.metadata and self.metadata['readOnly']:
            raise PropertyError('Read-only property')

        try:
            validate(value, self.metadata)
        except ValidationError:
            raise PropertyError('Invalid property value')
def validate_value(self, value):
        if 'readOnly' in self.metadata and self.metadata['readOnly']:
            raise PropertyError('Read-only property')

        try:
            validate(value, self.metadata)
        except ValidationError:
            raise PropertyError('Invalid property value')
def validate_value ( self , value ) : if 'readOnly' in self . metadata and self . metadata [ 'readOnly' ] : raise PropertyError ( 'Read-only property' ) try : validate ( value , self . metadata ) except ValidationError : raise PropertyError ( 'Invalid property value' )
Validate new property value before setting it.

        value -- New value
Validate new property value before setting it .