Home | Trees | Indices | Help |
---|
|
object --+ | basevalidator.BaseValidator --+ | IsRegexMatch --+ | IsPlainText
Check the value only contains alphanumerics, underscores & hyphen.
Useful for checking identifiers.
For example:
>>> v = IsPlainText() >>> v ('abcd') 'abcd' >>> v ('ab cd') Traceback (most recent call last): ... ValueError: 'ab cd' is not plain text >>> v ('ab!cd') Traceback (most recent call last): ... ValueError: 'ab!cd' is not plain text
Idea flinched from FormEncode.
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Jul 22 15:13:46 2011 | http://epydoc.sourceforge.net |