| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Validator --+
|
IS_EQUAL_TO
example:
INPUT(_type='text', _name='password')
INPUT(_type='text', _name='password2',
requires=IS_EQUAL_TO(request.vars.password))
the argument of IS_EQUAL_TO is a string
>>> IS_EQUAL_TO('aaa')('aaa') ('aaa', None)
>>> IS_EQUAL_TO('aaa')('aab') ('aab', 'no match')
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Oct 14 15:17:06 2013 | http://epydoc.sourceforge.net |