I got it to work by setting the template in the return dictionary so I
could refer to it as 'self.classTemplate'
sample:
class A:
classTemplate = "templateA"
@expose()
def page(self):
return dict(tg_template=self.classTemplate)
class B(A):
classTemplate = "templateB"
I couldn't come up with anything else that worked. This might be
helpful though:
class A:
def templatedDict(self, *args, **kw):
return dict(tg_template=self.classTemplate, **kw)
classTemplate = "templateA"
def page(self):
return self.templatedDict()
-Adam
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---