Home | Trees | Indices | Help |
|
---|
|
object --+ | validator.IValidator --+ | abstract_validator.AbstractValidator --+ | AbstractStringValidator
Validator base class for validating strings. See AbstractValidator for more information.
To include the value that failed validation in the exception message
you can use "{0}" in the error message. This will be replaced
with the failed value (converted to string using __str__) or
"None" if the value is None
.
Version: 1.1.2
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
Constructs a validator for strings. None and empty string values are always accepted. To reject empty values, set the field being validated as required.
|
Tests if the given value is a valid string. None values are always accepted. Values that are not strings are converted using __str__. Then isValidString is used to validate the value.
|
Checks if the given string is valid.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Apr 20 16:52:51 2013 | http://epydoc.sourceforge.net |