We used wget followed by some ad hoc URL mangling. Our main problems was files without extensions. We captured the MIME type from wget's output, appended an appropriate extension and then replaced all matching URLs. Steven Steven Hayles - Computer Systems Developer, sh23@le.ac.uk Learning Technology Section, Computer Centre, University of Leicester, University Rd, Leicester, LE1 7RH Fax (0/+44)116 2525027 WWW <URL:http://www.le.ac.uk/home/sh23> On Wed, 7 Jul 2004, David Chandek-Stark wrote:
I want to set up a process for dumping my Zope CMF site to the filesystem, to be served by Apache. I'm interested in anyone who's doing this - what tools are you using. I'm trying Wget, but the main problem is dealing with absolute URLs. I can use the Wget --convert-links option, which removes the href attribute from the <base> tag and makes internal links relative. However, I still have a problem with folders. The absolute_url() method does not return a trailing slash for folders. Wget downloads the URL folder_name as a file called folder_name, but it downloads folder_name/ as folder_name/index.html. I have already written a relativeURL() script based on portal_url.getRelativeUrl(), but it doesn't return a trailing slash either, so I'll have to add one.
Thanks, David
-- David Chandek-Stark Web Applications Developer Duke University - Perkins Library (919) 660-5859 dc@duke.edu _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )