On Wednesday 19 August 2009 08:29:46 [email protected] wrote:
> hello diez,
>
> thanks a lot :) .
> you make me closer to tg2.
>
> On Wed, Aug 19, 2009 at 00:04, Diez B. Roggisch<[email protected]> wrote:
> > [email protected] schrieb:
> >> hello friends,
> >>
> >> how could a controller method know whether it's invoked as an
> >> error_handler or directly?
> >
> > Through
> >
> >   pylons.c.validation_exception
>
> now i managed to do the validation: i have the error_handler invoked, and
> taking data from pylons.c.validation_exception.
>
> but however, the errors don't show with error_for, as they do with other
> forms. i found the same problem with a form containing repeater. could i do
> the connection somehow?

I'm not entirely sure what you mean here. However, in templates 
under "c.form_errors" there should be a mapping of errors, you can work with 
that of course.

But it *should* work with tw out of the box of course.

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