Thanks. Can't believe I didn't see this in the decorators file. Works like a charm.
On Apr 30, 5:39 pm, "Diez B. Roggisch" <[email protected]> wrote: > override_template > > Is what you need. > > Diez > > Am 01.05.2010 um 00:55 schrieb John Lorance <[email protected]>: > > > > > > > Somewhere I thought I found a reference as to how to override or > > define the template you want to use within a given controller method. > > Basically, i don't want to define the template at startup in @expose; > > but instead determine the template based upon request conditions. So > > my controller method would look something like: > > > @expose() > > def index(self): > > template_path = determineTemplateNameDyanamically(request) > > return (...the usual vars to the template...) > > > I'm sure this is an easy problem to solve, I've just not encountered > > the obvious way to set the template on the fly. > > > -- > > 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 > > athttp://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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://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 [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.

