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


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
FormEncode-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/formencode-cvs

Reply via email to