On 12/24/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I think this is a great idea:
>
> > # Something evil happend to our DB
> > @error_handler(sql_error, "isinstance(errors, SQLObjectIntegrityError)")
> > # Default
> > @error_handler(submit_error)
>
> The power to dispatch your errors is there if you want it -- but if it
> makes your head spin, you don't have to use it. That's really good.

This does seem nice. It makes it easy to split up standard validation
problems from actual errors, if you need to.

Kevin

Reply via email to