Exception or not

Arnaud Delobelle arnodel at googlemail.com
Mon Mar 3 11:20:42 EST 2008



Monica Leko wrote:

> Suppose you have some HTML forms which you would like to validate.
> Every field can have different errors.  For example, this are the
> forms:
>
> username
> password
> etc
>
> And you want to validate them with some class.  Is this good pattern:
[...]

You could have a look at how django [http://www.djangoproject.com] and
how they handle forms:

http://www.djangoproject.com/documentation/newforms/

In fact their newforms module should work fine as a standalone.
--
Arnaud



More information about the Python-list mailing list