Diez,

The error messages appear to be properly filling a dict of
tmpl_context.form_errors in the 'error_handler=' method, but the
messages such as "Please enter a value" aren't showing up next to the
fields anymore like they were when using old non-custom form
validators.

Somehow the errors aren't getting into the tw.forms mako template for
table_form in order to make the following lines trigger:

                % if show_children_errors and error and not
field.show_error:
                <span class="fielderror">${tw.content(error)}</span>
                % endif


Any advice would be greatly appreciated.

Seth


On Jul 15, 3:35 pm, "Diez B. Roggisch" <[email protected]> wrote:
> When using chained validators, you need return the error-message
> properly. Right out of my head I can only say that you need to return
> raise the Invalid-exception with not a string, but a dictionary as
> error-message. And the keys of that dict need to match the form-fields.
> Something along these lines. If that's not working, I try & dig some
> code out, but that has to wait for work tomorrow.
>
> Diez
--~--~---------~--~----~------------~-------~--~----~
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