gws.base.model.validator
¶
Base model validator.
Source code: gws.base.model.validator
Module Contents¶
- class gws.base.model.validator.Config(*args, **kwargs)¶
Bases:
gws.Config
Configuration for the model validator.
- forCreate: bool = True¶
If True, the validator is applied when creating a new object.
- forUpdate: bool = True¶
If True, the validator is applied when updating an existing object.
- message: str = ''¶
Error message prefix for validation errors.
- gws.base.model.validator.DEFAULT_MESSAGE_PREFIX = 'validationError_'¶
- class gws.base.model.validator.Object¶
Bases:
gws.ModelValidator
Model Validator.
- configure()¶
Configuration hook.