<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Paul Winkler &lt;pw_lists@slinkp.com&gt;<br><br><div>On Tue, Nov 07, 2006 at 03:14:40AM -0800, Nancy Donnelly wrote:<br>&gt;&gt; That helped a lot! I yahoo'd (can't google any more since they've sold out to the interests gathering &gt;&gt; our personal data for Homeland Security) "put_factory" and got this code snippet:<br>&gt;&gt; <br>&gt;&gt; if ext == 'dtml': <br>&gt;&gt; &nbsp; from OFS.DTMLDocument import DTMLDocument<br>&gt;&gt; &nbsp;<br>&gt;&gt;&nbsp;&nbsp; return DTMLDocument( '', __name__=name )<br>&gt;&gt; <br>&gt;&gt; So...how would I rewrite that to change it into a page template? And, more importantly,
 where is &gt;&gt; the documentation to do so? Yahooing didn't help on this. I went to my Zope installation to:<br>&gt;&gt; {INSTALLATION}/lib/python/OFS<br>&gt;&gt; to hunt around, but no script pointing to some "PTDocument" like there is with DTML.<br><br>&gt; I think you want ZopePageTemplate from lib/python/Products/PageTemplates/<br><br>Hmm. Looking in that I find these two files that *might* be appropriate:<br><br>PageTemplates.py<br>ZopePageTemplates.py<br><br>The latter is a wrapper for the former. The former defines the following class:<br><br>class PageTemplate(Base):<br><br>If this is the class I want to use, why only one argument? My example above cites exactly two arguments. And it is not a "base" I need to pass, is it?<br><br>The latter defines the following class:<br><br>class ZopePageTemplate(Script, PageTemplate, Historical,
 Cacheable,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Traversable, PropertyManager):<br>&nbsp;<br>Why so many arguments? It doesn't look like those are any of the arguments I need to pass. None of the other files in that folder appeared to make sense, either.<br><br>I confess I'm still quite green at programming, so if I'm wrong, please don't be too harsh ;) Any direction would be appreciated.<br>TIA,<br>Nancy<br></div></div></div></div><br></body></html>