[ZPT] Adding a ZPT programmaticly
Peter Bengtsson
mail@peterbe.com
Thu, 21 Jun 2001 18:03:00 +0200
> I don't know if you'd consider this easier, but you should be able to:
>
> manage_addPageTemplate(id)
>
> and then:
>
> ob = parent[id]
> ob.pt_setTitle(title)
> ob.write(content)
>
Your code was neater, but it would be nice to be able to do this at first
via manage_addPageTemplate, please.
http://www.zope.org/Members/peterbe/DTML2ZPT/#example12
> Of course, it wouldn't be hard to add optional title and text arguments
> to manage_addPageTemplate.
>
> Cheers,
>
> Evan @ digicool
>