[Zope] progammatically add a Page Template

Mark McEahern mark@mceahern.com
Wed, 25 Sep 2002 17:45:28 -0500


How do I programmatically add a Page Template to a folder in Zope?  I'm
basing my attempts off of:

  /zope/utilities/load_site.py

This has various instances of:

  call(object.manage_addXXX, id=name, XXX)

e.g.,

  call(object.manage_addDTMLDocument, id=name, title=title, file=body)

How do I add a Page Template in a similar manner?

I've tried:

  call(object.manage_addZopePageTemplate, id=name)

But that gives me a not found error, indicating I'm not using the correct
method name.

Thanks,

// mark

-