On Aug 22, 2008, at 7:44 PM, Sok Ann Yap wrote:

By the way, Django has a rest plugin that is hardcoded to return 400
on form validation failures [2]. Struts has a rest plugin that by
default returns 400 on form validation failures [3]. Pylons already
has a wonderful rest controller. I am merely suggesting to add a
parameter to @validate that is defaulted to 200.

Yea..... @validate already has 4 too many options, there's no way it should have any more, in fact, it shouldn't have as many as it does. ;)

It needs some serious re-working, likely as several decorators, or options that can be combined in various ways, to avoid having a single function with 10+ keyword options (eeeeek). There was a proposal awhile back to split it up, I think that should be revisited. I see no problem with making this an option for those that want it, we just need it in a new validate setup.

Cheers,
Ben

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to