[ZPT] problem with ZPT and getHeader
   
    Pete Phillips
     
    pete@smtl.co.uk
       
    Wed, 15 Jan 2003 10:06:26 +0000
    
    
  
Ahhh - it apppears I totally misunderstood what was happening here!
What I really wanted was just 
		<p metal:fill-slot="body">
(this does the right thing - I thought that I needed the tal:content to
actually call up the relevant macro, but it turns out that I don't need
that level of complexity.)
Thanks or your suggestions and help.
Pete
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
_______________________________________________
ZPT mailing list
ZPT@zope.org
http://lists.zope.org/mailman/listinfo/zpt