Author: ianb
Date: 2008-10-29 10:32:02 -0600 (Wed, 29 Oct 2008)
New Revision: 3638

Modified:
   FormEncode/trunk/docs/news.txt
   FormEncode/trunk/formencode/api.py
Log:
Added __unicode__ method to Invalid

Modified: FormEncode/trunk/docs/news.txt
===================================================================
--- FormEncode/trunk/docs/news.txt      2008-10-28 15:53:47 UTC (rev 3637)
+++ FormEncode/trunk/docs/news.txt      2008-10-29 16:32:02 UTC (rev 3638)
@@ -3,6 +3,11 @@
 
 .. contents::
 
+svn trunk
+---------
+
+* Added :meth:`formencode.api.Invalid.__unicode__`
+
 1.1
 ---
 

Modified: FormEncode/trunk/formencode/api.py
===================================================================
--- FormEncode/trunk/formencode/api.py  2008-10-28 15:53:47 UTC (rev 3637)
+++ FormEncode/trunk/formencode/api.py  2008-10-29 16:32:02 UTC (rev 3638)
@@ -118,6 +118,9 @@
         #    val += " (value: %s)" % repr(self.value)
         return val    
 
+    def __unicode__(self):
+        return self.msg
+
     def unpack_errors(self, encode_variables=False, dict_char='.',
                       list_char='-'):
         """


-------------------------------------------------------------------------
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