| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
basevalidator.BaseValidator --+
|
CheckLength --+
|
IsNotEmpty
Checks the value is not empty (a nonblank string, list with items, etc.)
For example:
>>> v = IsNotEmpty()
>>> v("abc")
'abc'
>>> v([])
Traceback (most recent call last):
...
ValueError: '[]' is empty
|
|||
|
|||
|
|||
|
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 |