hello michael, On 08/03/2012 12:56 AM, Michael Pedersen wrote: > On Thu, Aug 2, 2012 at 3:58 PM, alex bodnaru <alexbodn.gro...@gmail.com > <mailto:alexbodn.gro...@gmail.com>> wrote: > > > hello michael, > > On 08/02/2012 06:27 PM, Michael Pedersen wrote: > > I don't believe we have such a facility. While it might be possible to > do, I'm > > not even sure that's desirable. What are you trying to accomplish? More > > importantly, why? We may need to do something for this. > > > all my controllers inherit basecontroller. > i'd like most @validate error_handlers to behave the same. hence i'd put > this > error_handler in base. > how would you do it? > > > I wouldn't. @validate is on a per method basis because each method is > expecting > something different. I have no idea of any use case where a number of methods > are expecting everything to be the same. As a result, I can't conceive of a > time > that I would even *try* to do what you're describing, never mind actually > doing it.
all i wanted is to save the tmpl_context.form_errors in the request object, and raise an exception. this would better be done from basecontroller. this exception would later trigger /error/document, which i've patched to display this error. since this is a quite routine job, won't this be something to do in only one place? best regards, alex > > -- > Michael J. Pedersen > My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen > Google Talk: m.peder...@icelus.org <mailto:m.peder...@icelus.org> -- Twitter: > pedersentg > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To post to this group, send email to turbogears@googlegroups.com. > To unsubscribe from this group, send email to > turbogears+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/turbogears?hl=en. -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to turbogears@googlegroups.com. To unsubscribe from this group, send email to turbogears+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.