31 May
2002
31 May
'02
8:21 a.m.
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')
I don't know if it is the best solution, but you can define a method manage_afterAdd(self,item,container) and add the page template there (remember to call the ancestors' manage_afterAdd if needed, multiple inheritance can be messy). Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007