Author: ianb
Date: 2007-10-17 12:48:36 -0600 (Wed, 17 Oct 2007)
New Revision: 3087

Modified:
   FormEncode/trunk/formencode/schema.py
Log:
forgot to commit this schema/empty improvement

Modified: FormEncode/trunk/formencode/schema.py
===================================================================
--- FormEncode/trunk/formencode/schema.py       2007-10-17 18:17:57 UTC (rev 
3086)
+++ FormEncode/trunk/formencode/schema.py       2007-10-17 18:48:36 UTC (rev 
3087)
@@ -304,9 +304,8 @@
         result.extend(self.fields.values())
         return result
 
-    def is_empty(self, value):
-        # Generally nothing is 'empty' for a schema
-        return False
+    def empty_value(self, value):
+        return {}
 
 def format_compound_error(v, indent=0):
     if isinstance(v, Exception):


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
FormEncode-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/formencode-cvs

Reply via email to