Kevin Dangoor wrote:

> The ideas there are fairly similar. Your code looks a bit like
> FormEncode, but does not do the two-way conversion (to_python,
> from_python). Why did you choose to not use FormEncode?

Actually my validators didn't pretend to be comprehensive... I think
that if I was to validate something like an int I would come up with
something like Ian did. C# being statically typed AFAIK they validate
numeric values with regexes but then, of course the value in the
underlying "business logic" is treated like an int or whatever. ASP.NET
validators are really a no-brainer.

I just rolled my own because even with Groovie's tutorial I couldn't
really figure out how to make stuff work my way.

> Thanks for the link to your example!

You're welcome!

Lorenzo

Reply via email to