|
From: <sub...@co...> - 2006-12-06 18:58:27
|
Author: ianb
Date: 2006-12-06 11:58:17 -0700 (Wed, 06 Dec 2006)
New Revision: 2120
Modified:
FormEncode/trunk/docs/Validator.txt
Log:
Added if_missing doc
Modified: FormEncode/trunk/docs/Validator.txt
===================================================================
--- FormEncode/trunk/docs/Validator.txt 2006-12-06 17:52:04 UTC (rev 2119)
+++ FormEncode/trunk/docs/Validator.txt 2006-12-06 18:58:17 UTC (rev 2120)
@@ -362,6 +362,13 @@
``.validate_other()`` will not be called when
``.from_python()`` is used.
+``if_missing``:
+ Typically when a field is missing the schema will raise an
+ error. In that case no validation is run -- so things like
+ ``if_invalid`` won't be triggered. This special attribute (if
+ set) will be used when the field is missing, and no error will
+ occur. (``None`` or ``()`` are common values)
+
State
-----
|