[Zope] How To Convert Files To Page Templates?
Paul Winkler
pw_lists at slinkp.com
Tue Nov 7 09:47:51 EST 2006
On Tue, Nov 07, 2006 at 03:14:40AM -0800, Nancy Donnelly wrote:
> That helped a lot! I yahoo'd (can't google any more since they've sold out to the interests gathering our personal data for Homeland Security) "put_factory" and got this code snippet:
>
> if ext == 'dtml':
> from OFS.DTMLDocument import DTMLDocument
>
> return DTMLDocument( '', __name__=name )
>
> So...how would I rewrite that to change it into a page template? And, more importantly, where is the documentation to do so? Yahooing didn't help on this. I went to my Zope installation to:
> {INSTALLATION}/lib/python/OFS
> to hunt around, but no script pointing to some "PTDocument" like there is with DTML.
I think you want ZopePageTemplate from lib/python/Products/PageTemplates/
--
Paul Winkler
http://www.slinkp.com
More information about the Zope
mailing list