I do something very similar to this in a current project.
It's not very elegant, but works well and quickly.

On Apr 26, 6:02 pm, Peter Russell <[EMAIL PROTECTED]> wrote:

> So I could write a method like "get_template_name(self, name)" for the
> base class, which appends "project.templates.register." to name.  Then
> in my controller methods, I can return
> tg_template=self.get_template_name('index') in the dict (for example)
> instead of specifying a template in expose.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to