hi diez, i found it. your help and explanation put me in the position to tye the ends:
i'm passing pylons.c.validation_exception as the error parameter to the form. i'll also take the rejected values from request, as you taught me too. tw doesn't help, probably, because of my dynamic form. btw: i see you on the elixir group too. have you tried my elixir patch to tg.devtool? thanks a lot, alex On Wed, Aug 19, 2009 at 11:48, Diez B. Roggisch<[email protected]> wrote:
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 -~----------~----~----~----~------~----~------~--~---
-- alex
smime.p7s
Description: S/MIME Cryptographic Signature

