[ZPT] problem with ZPT and getHeader

Dieter Maurer dieter@handshake.de
Fri, 10 Jan 2003 21:26:50 +0100


Pete Phillips wrote at 2003-1-9 19:06 +0000:
 > I am trying to use the method of setting up page templates as
 > described in chapter 9 of the Zope book.
 > 
 > However, I keep getting:
 > 
 > 	Error type: undefined
 > 	Error value: getbody not found in 'here/getBody' at line 25
 > 	column 1
 > 
 > I have a file called master.html (which is a Page Template) containing
 > the macros, and that page is OK. When I call the page from another
 > file, it works as expected, it's only when I try to call up the
 > slots with 
 > 	<p metal:fill-slot="body" tal:content="here/getBody">
 > that  things stop working.
Your "here" object does not have a "getBody" attribute.


Dieter