4 Apr
2002
4 Apr
'02
7:01 p.m.
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