Home | Trees | Indices | Help |
|
---|
|
object --+ | Validator --+ | IS_JSON
example:
INPUT(_type='text', _name='name', requires=IS_JSON(error_message="This is not a valid json input") >>> IS_JSON()('{"a": 100}') ({u'a': 100}, None) >>> IS_JSON()('spam1234') ('spam1234', 'invalid json')
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
For some validators returns a formatted version (matching the validator) of value. Otherwise just returns the value.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Mar 16 02:36:20 2014 | http://epydoc.sourceforge.net |