[Zope] Adding ZPT in __init__ method

Chris Withers chrisw@nipltd.com
Fri, 31 May 2002 12:00:54 +0100


Nico de Boer wrote:
> 
> Hello,
> 
> I want to add a ZPT at initialization (in the __init__ method) of my
> folderish product. Why can't I just use:
> 
>         self.manage_addPageTemplate(id='ZPTid',title='title',text='content')

Are you sure youre not looking for PageTemplateFile, which behaves like DTMLFile
or HTMLFile?

cheers,

Chris