31 May
2002
31 May
'02
11:22 a.m.
Hello, Thanks for your ideas. I managed to solve the problem!!! This is the code: from Products.PageTemplates import ZopePageTemplate self._createZPT(self, 'ZPT_id', 'title', 'content') def _createZPT(self, parent, id, title, content): """Add a PageTemplate to the News product""" parent._setObject(id, ZopePageTemplate.ZopePageTemplate(id, text=content)) parent._getOb(id).pt_setTitle(title) Maybe you can use it? Thanks again. Greetz Nico
8711
Age (days ago)
8711
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nico de Boer