|
From: <sub...@co...> - 2008-06-25 16:02:24
|
Author: ianb
Date: 2008-06-25 10:02:30 -0600 (Wed, 25 Jun 2008)
New Revision: 3494
Modified:
FormEncode/trunk/docs/news.txt
FormEncode/trunk/formencode/compound.py
Log:
make All not check emptiness
Modified: FormEncode/trunk/docs/news.txt
===================================================================
--- FormEncode/trunk/docs/news.txt 2008-06-21 19:59:20 UTC (rev 3493)
+++ FormEncode/trunk/docs/news.txt 2008-06-25 16:02:30 UTC (rev 3494)
@@ -26,6 +26,9 @@
* Some adjustments to the URL validator.
+* :class:`formencode.compound.All` does not handle empty values,
+ instead relying on sub-validators to check for emptiness.
+
1.0.1
-----
Modified: FormEncode/trunk/formencode/compound.py
===================================================================
--- FormEncode/trunk/formencode/compound.py 2008-06-21 19:59:20 UTC (rev 3493)
+++ FormEncode/trunk/formencode/compound.py 2008-06-25 16:02:30 UTC (rev 3494)
@@ -165,3 +165,7 @@
not_empty = not_empty or getattr(validator, 'not_empty', False)
return not_empty
not_empty = property(not_empty__get)
+
+ def is_empty(self, value):
+ # sub-validators should handle emptiness.
+ return False
|