Author: ianb
Date: 2008-10-28 09:53:47 -0600 (Tue, 28 Oct 2008)
New Revision: 3637

Modified:
   FormEncode/trunk/formencode/schema.py
Log:
Fix the SimpleFormValidator's return value, and allow it to validate partial 
forms

Modified: FormEncode/trunk/formencode/schema.py
===================================================================
--- FormEncode/trunk/formencode/schema.py       2008-10-28 15:39:27 UTC (rev 
3636)
+++ FormEncode/trunk/formencode/schema.py       2008-10-28 15:53:47 UTC (rev 
3637)
@@ -451,7 +451,10 @@
         else:
             raise TypeError(
                 "Invalid error value: %r" % errors)
+        return value_dict
 
+    validate_partial = to_python
+
     def decorate(cls, **kw):
         def decorator(func):
             return cls(func, **kw)


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FormEncode-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/formencode-cvs

Reply via email to