[Zope] Grrr for ZPT and python product
Dieter Maurer
dieter@handshake.de
Thu, 4 Apr 2002 21:01:55 +0200
Peter Bengtsson writes:
> I have many difficulties using ZPT for python product development. METAL in
> fact.
>
> The templates are called like this:
>
> PTF = PageTemplateFile
> StandardLook = PTF('zpt/StandardLook', globals())
> AddIssue = PTF('zpt/AddIssue', globals())
> index_html = PTF('zpt/index_html', globals())
>
> AddIssue.zpt starts like this:
> <html metal:use-macro="here/StandardLook/macros/standard">
> ....
> It works fine for index_html.zpt though.
Apparently, "here" is something without access to "StandardLook"
when used with "AddIssue" but with such access in "index_html".
Depending on use, this is quite possible...
Dieter