Author: ianb
Date: 2008-11-14 16:38:17 -0700 (Fri, 14 Nov 2008)
New Revision: 3658

Modified:
   FormEncode/trunk/formencode/validators.py
Log:
clarify not_empty=True requirement for MinLength

Modified: FormEncode/trunk/formencode/validators.py
===================================================================
--- FormEncode/trunk/formencode/validators.py   2008-11-14 23:36:32 UTC (rev 
3657)
+++ FormEncode/trunk/formencode/validators.py   2008-11-14 23:38:17 UTC (rev 
3658)
@@ -371,8 +371,10 @@
 class MinLength(FancyValidator):
 
     """
-    Invalid if the value is shorter than `minlength`.  Uses len(),
-    so it can work for strings, lists, or anything with length.
+    Invalid if the value is shorter than `minlength`.  Uses len(), so
+    it can work for strings, lists, or anything with length.  Note
+    that you **must** use ``not_empty=True`` if you don't want to
+    accept empty values -- empty values are not tested for length.
 
     Examples::
 


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