On 1/16/06, mario ruggier <[EMAIL PROTECTED]> wrote:
> At this point I can't help mentioning this really nice generic
> validation module, spec.py, that is included in qp [1]. It allows you
> to specify data types of arbitrary complexity, with amazing
> expressivity, and automates the checking accordingly.

I didn't see any demo code, but it looks like a clever way to declare
validators.

Is it possible to implement something like a password check?
> 6 chars, < 30 chars, not a dictionary word, at least two of 
> [a-z][A-Z][0-9][$_^%*#]

Or a whole form check?
FieldsMatch(passwd,passwdverify)
OnlyOneFieldFilledIn(radio_field1, radio_field2, radio_field3, radio_field4)

> an_email_is = pattern('[EMAIL PROTECTED],3}$')

I know you were just giving an example, but there are four letter tlds
(.info, .name) so you may want to update this if you're actually using
it and there could be longer. I know there was a push for .mobile, not
sure if that made it.

Reply via email to