Re: FormEncode form validators
Felix Schwarz <felix.schwarz-S0/[email protected]>
| Newsgroups | gmane.comp.python.formencode |
|---|---|
| Message-ID | <[email protected]> |
Ian Bicking wrote: > Do people have classes or recipes they've written that are general > enough to include directly in FormEncode? If so, please contribute! > Realistic examples in the docstrings will be very helpful. I have some validators which might be useful: * RestrictedInteger (min, max, may be marked as optional) * PartialDate - FormValidator which takes three fields as day/month/year and ensures that these fields form are valid date while some date parts may be missing (e.g. year is missing so only day+month can be validated). * a custom unicode string validator which works as I expected the FormEncode one initially. I have unit tests for all of them. If you think one of those may be valuable for formencode, please send a short answer. I will have to get the ok from the customer's legal department to release as free software (which should be quite easy). fs ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ FormEncode-discuss mailing list FormEncode-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/formencode-discuss
smime.p7s
(application/x-pkcs7-signature, 3.2 KB) - not displayed