Author: ianb
Date: 2009-03-13 09:58:01 -0600 (Fri, 13 Mar 2009)
New Revision: 3813

Modified:
   FormEncode/trunk/docs/news.txt
   FormEncode/trunk/formencode/compound.py
Log:
Don't have Any handle empty values on its own

Modified: FormEncode/trunk/docs/news.txt
===================================================================
--- FormEncode/trunk/docs/news.txt      2009-03-12 22:04:53 UTC (rev 3812)
+++ FormEncode/trunk/docs/news.txt      2009-03-13 15:58:01 UTC (rev 3813)
@@ -12,6 +12,10 @@
 * Fixes `#2666139 DateValidator bug happening only in March under Windows in 
Germany :)
   
<http://sourceforge.net/tracker/index.php?func=detail&aid=2666139&group_id=91231&atid=596418>`_
 
+* Don't let :class:`formencode.compound.Any` shortcut validation when
+  it gets an empty value (this same change had already been made to
+  :class:`formencode.compound.All`).
+
 * Really updated German translation
 
 1.2.2

Modified: FormEncode/trunk/formencode/compound.py
===================================================================
--- FormEncode/trunk/formencode/compound.py     2009-03-12 22:04:53 UTC (rev 
3812)
+++ FormEncode/trunk/formencode/compound.py     2009-03-13 15:58:01 UTC (rev 
3813)
@@ -94,6 +94,10 @@
         return not_empty
     not_empty = property(not_empty__get)
 
+    def is_empty(self, value):
+        # sub-validators should handle emptiness.
+        return False
+
 class All(CompoundValidator):
 
     """


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
FormEncode-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/formencode-cvs

Reply via email to