Hi All,

I have a question regarding form validation in combination with a
CrudRestController.  Seems overriding the derived CRC's post method
removes execution of the validators that I had added in the TableForm
derived class definition.

To resolve this I'm trying to add the validator decorator to my
overridden post method but I'm not clear as to what the value for the
error_handler should be.  I think I've got the right value for form
(the instance var of my derived TableForm class) but I don't know what
to specify for the error_handler.  Trying new doesn't work cause its
not defined in the derived CRC class.  Overriding new in the derived
CRC and referencing that doesn't work either.  Doing that just results
in a post of the form values...instead of redisplaying the form with
the error messages.

So, my question is how do I leverage the builtin functionality of the
CrudRestController/form validation, etc... as described at
http://turbogears.org/2.1/docs/main/Extensions/Crud/index.html#overriding-crud-operations
if I also need to override my CRC's post method?

Thanks,
Evan

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to