[ZPT] PageTemplate and ZopePageTemplate

Peter Bengtsson mail@peterbe.com
Tue, 19 Jun 2001 09:58:40 +0200


Adding Page Template (from ZopePageTemplate.py) on the fly with my own code
in it.
My boss has a class in which he opens all files in the Product folder and
depending on the file extension, send the calls to different methods.
My responsibility is to create the .zpt files and handle the object creation
of their content.

I can't find out how to create a Page Template on the fly with my template
code.

Can't use PageTemplateFile() then unfortunatly.

Peter

It looks like I'm going to have to create the object contentless and then
edit the properties in the next step.