| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Validator --+
|
IS_MATCH
example:
INPUT(_type='text', _name='name', requires=IS_MATCH('.+'))
the argument of IS_MATCH is a regular expression:
>>> IS_MATCH('.+')('hello')
('hello', None)
>>> IS_MATCH('.+')('')
('', 'invalid expression')
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Feb 3 10:53:22 2010 | http://epydoc.sourceforge.net |