Well, thinking about it, you have a few options. You can override the class, and set the static template. Nothing wrong with this, and could even be preferred, especially on higher traffic sites. It will only ever be handled once, and it's done.
You can add your logic to your base controller (look at myproject.lib.base:BaseController). That method would work, but will incur an overhead on *every* request to your site. Small, but still there. You can continue as you have been, adding your logic to each controller method. Not very maintainable, and still incurs the penalty. You can re-check and make sure you actually need to be doing this. Most people, most of the time, should be able to get along with just updating their CSS files, resulting in no changes at all. This is the best, but is not always something that can be done. If you can, though, I would recommend it. That's really all the options I can come up with. I hope it helps somewhat. On Fri, Jul 13, 2012 at 10:25 PM, Juparave <[email protected]> wrote: > Hello, >> >> I wonder where exactly should I set flash.static_template. > > I want to change the template site-wide and so far what I manage to do is > to add a declaration for flash.static_template in every controller. > > Should I override the class and set the static_template there? > > Thanks, I know is an old issue but so far google hasn't been my friend on > this. > > -- > 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/-/UWw2OeNbdvcJ. > 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. > -- Michael J. Pedersen My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen Google Talk: [email protected] -- Twitter: pedersentg -- 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.

