Author: ianb
Date: 2008-03-14 12:18:36 -0600 (Fri, 14 Mar 2008)
New Revision: 3337

Modified:
   FormEncode/trunk/docs/news.txt
   FormEncode/trunk/formencode/api.py
Log:
Add messages, all_messages, subvalidators to __singletonmethods__

Modified: FormEncode/trunk/docs/news.txt
===================================================================
--- FormEncode/trunk/docs/news.txt      2008-03-12 22:22:34 UTC (rev 3336)
+++ FormEncode/trunk/docs/news.txt      2008-03-14 18:18:36 UTC (rev 3337)
@@ -13,6 +13,9 @@
   chained validators get run even when there are previous errors (to
   detect all the errors).
 
+* While something like ``Int.to_python()`` worked, other methods like 
+  ``Int.message(...)`` didn't work.  Now it does.
+
 0.9
 ---
 

Modified: FormEncode/trunk/formencode/api.py
===================================================================
--- FormEncode/trunk/formencode/api.py  2008-03-12 22:22:34 UTC (rev 3336)
+++ FormEncode/trunk/formencode/api.py  2008-03-14 18:18:36 UTC (rev 3337)
@@ -157,7 +157,8 @@
     use_builtins_gettext = True #In case you dont want to use __builtins__._
                                 #altough it may be definied, set this to False
     
-    __singletonmethods__ = ('to_python', 'from_python')
+    __singletonmethods__ = ('to_python', 'from_python', 'message', 
'all_messages',
+                            'subvalidators')
 
     def __classinit__(cls, new_attrs):
         if new_attrs.has_key('messages'):


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