Anyone know if there is a way to make Zope to output a static site? For doing client presentation, I often made a static copy of the site, just in case when connection is down, or when there is not even a connection available. Kam
On Mon, 2 Aug 1999, Kam Cheung wrote:
Anyone know if there is a way to make Zope to output a static site? For doing client presentation, I often made a static copy of the site, just in case when connection is down, or when there is not even a connection available. Without a special design, this seems difficult, because Zope does not represent the Mime type in the id extension.
So after copying out the site, you get mostly files without the correct extension. Additionally, there is the problem, that Zope sites when can be infinitly recursive. Actually, they always are, but with some luck, you don't have any infinite recursive links in the site. Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
Kam Cheung wrote:
Anyone know if there is a way to make Zope to output a static site?
If you have python installed, in the Tools/webchecker directory, there is a script called websucker.py, and the associated tk-gui - wsgui.py You can use this script to copy a website. You could try pointing it at your zope site. -- | John J. Lehmann, johnl@axis.com.au + scientists: at an international centre such as CERN, some are capable + of speaking only one language (the Americans) while others have found + room in their brains for four langauges (the Swiss), but all are + equally good at physics
On Mon, Aug 02, 1999 at 01:15:03PM +0000, Kam Cheung wrote:
Anyone know if there is a way to make Zope to output a static site? For doing client presentation, I often made a static copy of the site, just in case when connection is down, or when there is not even a connection available.
I asked this question a few months back and I think the consensus was to use wget or curl or something like that to snarf the files. Make sure to watch out for the following: 1. Watch your filename extensions. With zope, you don't normally name objects with .gif or .jpg, but there isn't any rule that says you can't name them as such. And remember to switch your _html to .html. 2. Don't build you content with lot of fancy, dynamic stuff that won't build nice static pages. ie: don't use tree. Keep things simple, stick to the basics, learn to snarf files with something like wget, and you should be fine. Unfortunately, Zope doesn't have a static page rendering engine like Frontier (or maybe there is and I don't know about it). I haven't done this yet myself, but will be doing this later in the week for a small site. -- karl
participants (4)
-
Andreas Kostyrka -
John Lehmann -
Kam Cheung -
Karl Fast