Glauco, is that TurboGears 1 you're using?

Am Montag, 18. Juni 2012 15:32:26 UTC+2 schrieb Glauco:
>
> Hi all i've a strange behaviour showing errors in template. 
>
>
>
> I've this: 
>
> class Controller1(object): 
>      @tg.expose( template="base" ) 
>      @tg.identity.require( .. ) 
>      @check_environment 
>      def index(self, tg_errors=None, **kw): 
>          if tg_errors: 
>              print tg_errors 
>
>      @tg.expose() 
>      @tg.identity.require( tg.identity.not_anonymous() ) 
>      @tg.validate( form=_form ) 
>      @tg.error_handler(index) 
>      @check_environment 
>      def save(self, **kw): 
>              ... 
>
>
> class Controller2(Controller1): 
>      # index and save are inherited from Controller1 
>
>
>
> All validations work perfectly , tg_errors are correctly passed to 
> controller ( the print is ok for each controller) . 
> But in the controller2 the error_for functions inside genshi don't work. 
>
>
>
> any ideas? 
> Thank you 
> Gla 
>
>
>
> Il contenuto di questa e-mail è rivolto unicamente alle persone alle quali 
> è indirizzato e può contenere informazioni la cui riservatezza è tutelata 
> legalmente. Sono vietati la riproduzione, la diffusione e l’uso di questa 
> e-mail in mancanza di autorizzazione del destinatario. Se avete ricevuto 
> questa e-mail per errore vogliate cortesemente contattarci  immediatamente. 
>
> This e-mail is intended only for the person or entity to which it is 
> addressed and may contain information that is privileged, confidential or 
> otherwise protected from disclosure. Unauthorised reproduction, 
> dissemination or use of this e-mail or of the information herein by anyone 
> other than the intended recipient is prohibited. If you have received this 
> e-mail by mistake, please notify us immediately. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/turbogears/-/-hFQVBtAHp8J.
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