The validators in the module I posted earlier today 1. accept empty values (obviously except the NotEmpty validator class) 2. can be instantiated such as validators=[validators.NotEmpty(error="Please enter your favourite soccer team")] If necessary, you can also modify the _error attribute if necessary after instantiation, e.g. to change the language or so. That should address at least some of the common problems. Quoting Matt Feifarek <[EMAIL PROTECTED]>: > Marc Saric wrote: > > > While fumbling around with validators I found, that they have two common > > disadvantages (for me): > > > > 1. The error-messages are hard-coded (i.e. english text). > > 2. Most of them actually test for two things at once, existance AND > > correct format of field-input. > > The Validator/Converters are designed to be super-simple, and to be > subclassed for custom application requirements (like output messages). > Sounds like you did just that. > > We do intend to change them so that they can be empty if there is a > validator involved, and still pass (ie, the validator only runs if there > is input). That will happen when/if we ever get it together to make > another release. > > You're not the first one to run into this problem, incidentally. > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > Webware-discuss mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/webware-discuss >
---------------------------------------- This mail sent through www.mywaterloo.ca ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
