Home | Trees | Indices | Help |
|
---|
|
object --+ | Validator --+ | IS_EXPR
example:
INPUT(_type='text', _name='name', requires=IS_EXPR('5 < int(value) < 10'))
the argument of IS_EXPR must be python condition:
>>> IS_EXPR('int(value) < 2')('1') ('1', None) >>> IS_EXPR('int(value) < 2')('2') ('2', 'invalid expression')
|
|||
|
|||
|
|||
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 |