There seems to be a basic set of validators for integers, email,
dates, etc. However writing custom validators is very simple (compared
to FormEncode) and it should be easy to "fill in the gaps" with
additional validators, which could be added to the Pylons core or
submitted to WTForms.

On Oct 3, 5:23 am, Mike Orr <[email protected]> wrote:
> On Fri, Oct 2, 2009 at 4:05 PM, Dan <[email protected]> wrote:
>
> > WTForms does this already:http://wtforms.simplecodes.com/
>
> > It uses the same pattern as Django forms, and might be a bit further
> > developed.
>
> That looks pretty elegant. It would obviate FormEncode, htmlfill, and
> the form helpers, it looks like.  Are the validators complete?  Not
> that FormEncode's validators are easy to use in their semi-documented
> state.
>
> Can you use the validators alone without the form?  I use a FormEncode
> schema to validate the INI file in environment.py, so that I can make
> all exceptions happen at the beginning rather than in unexpected
> requests.
>
> If you can make a Pylons tutorial for it, we can consider documenting
> it in the next version of Pylons.
>
> --
> Mike Orr <[email protected]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to