Author: ianb
Date: 2008-05-14 13:31:18 -0600 (Wed, 14 May 2008)
New Revision: 3429

Modified:
   FormEncode/trunk/formencode/foreach.py
Log:
use [] as empty_value for ForEach

Modified: FormEncode/trunk/formencode/foreach.py
===================================================================
--- FormEncode/trunk/formencode/foreach.py      2008-05-14 16:17:03 UTC (rev 
3428)
+++ FormEncode/trunk/formencode/foreach.py      2008-05-14 19:31:18 UTC (rev 
3429)
@@ -109,6 +109,9 @@
                 else:
                     state.full_list = previous_full_list
 
+    def empty_value(self, value):
+        return []
+
     def _convert_to_list(self, value):
         if isinstance(value, (str, unicode)):
             return [value]


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FormEncode-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/formencode-cvs

Reply via email to