[ZPT] PageTemplateFile
Dieter Maurer
dieter at handshake.de
Tue Aug 31 15:10:20 EDT 2004
Axel Müller wrote at 2004-8-23 14:56 +0200:
>to add some kind of "skins" to my products I would like to give
>PageTemplateFile() different paths to load files from, but there is a
>problem:
>
>
>-----
>standardHeader = PageTemplateFile('Pfad/zu/standardHeader',globals())
>-----
>metal macros are ok
>
>-----
>def standardHeader(self):
> """standardHeader"""
> return PageTemplateFile('Pfad/zu/standardHeader',globals())
Not sure, I understand what you want.
But the "PageTemplateFile" instance should definitely get
an acquisition context.
Try:
return PageTemplateFile('Pfad/zu/standardHeader',globals()).__of__(self)
--
Dieter
More information about the ZPT
mailing list