I have a problem with ZPT and a Python Product. I set the page template like this: class myClass(Folder): StandardTemplate=PageTemplateFile('StollDMS-www/StandardTemplate', globals(), __name__='StandardTemplate')) it works to use TAL. But it fails if I try to define a macro. I get: Error Type: TALESError Error Value: exceptions.NameError on global name 'aq_parent' is not defined in "standard:'container/StandardTemplate/macros/page'", at line 1, column 1 StandardTemplate: <html metal:define-macro="page"> <head> <title>The Title</title> </head> <body> <a href="search">[Suchen]</a><br> <a href="create_new_doc">[Neues Dokument]</a><br> <div metal:define-slot="body"> This is where the page's body text goes. </div> </body> </html> Page that uses StandardTemplate: <html metal:use-macro="container/StandardTemplate/macros/page"> <body> <span metal:fill-slot="body"> <form action="edit_lists_action" method="get"> ... I use the ZPT that comes with Zope2.5.1b1 thomas