<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"><span idspanfor="frame" mlb_idspanflag="true" style="border: 1px solid black; padding: 0px 3px; z-index: 500; font-size: xx-small; font-family: sans-serif; background-color: rgb(214, 227, 254); position: absolute; top: 0pt; left: 0pt;">83</span><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;"><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: Chris Withers <chris@simplistix.co.uk><br><div><br>Nancy Donnelly wrote:<br>> Hi;<br>>> I'm redoing a bunch of documents on
a Zope site on my PC and I realized it >> would be easier to simply delete all the old ones and upload all the new ones. >> But if I do that, they'll load as "files", not "page templates". <br><br>> How are you creating these new objects?<br><br>In a text editor.<br><br>> I'd hazard a guess that you're looking to create a PUT_factory so that <br>> objects of the correct type are created when you upload things via FTP <br>> or WebDAV...<br><br>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:<br><br>if ext == 'dtml': <br> from OFS.DTMLDocument import DTMLDocument
<br> return DTMLDocument( '', __name__=name )<br><br>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:<br>{INSTALLATION}/lib/python/OFS<br>to hunt around, but no script pointing to some "PTDocument" like there is with DTML.<br>TIA,<br>Nancy<br></div></div></div></div><br></div><br></div></div><br></body></html>