A validator class for normal python objects. By default this validator declares all objects valid. Subclass this class and overwrite it’s objectValidity method to change it’s behaviour.
Get the validator for another Class :param cls: the Class for which to get the validator :return: an ObjectValidator instance
Verify if a row in a model is ‘valid’ meaning it could be flushed to the database
Returns: | the number of invalid rows in a model, as they have been verified |
---|