Why do you need a template aa persistent object in the context of Plone. A template belongs into a custom Plone policy package registered as a browser view. Everything else is not recommended.
Hi ZTM,
Not fully sure if you try doing something advanced - or simple never before tried do custom development for plone.
You can take a look in existing plone products for browser folder and find configure.zcml file
There you will see reference to templates (pt files) and class files (py files)
This is example that maybe can give you inspiration (line 133):
"broken" in what way? If this is "broken" in the ZODB sense, then it would usually mean that the ZODB in unable to load it (usually, because some class is missing).
The easiest way for you is likely to create the the page template via the ZMI; maybe to change later its code in a script.
I sent a couple of email replies which apparently were lost (or pending moderation?). Just wanted to say thank you for your replies. In the meanwhile I solved the problem. I was using PageTemplate, instead I should use ZopePageTemplate.