[Zope] Generations of websites
Jerome Alet
alet@librelogiciel.com
Mon, 3 Jun 2002 18:35:13 +0200
On Mon, Jun 03, 2002 at 08:37:22AM -0700, ERIC Lawson - x52010 wrote:
>
> The first and most pressing question: suppose I implement the site using
> Zope, particularly page templates and DTML. Supposing I need to retreat,
> then, how can I return to my directory-and-file based site? That is, Zope
> stores the site as objects in a database; how can I write those objects
> back to files and directories? Is there an established mechanism for
> this? Granted, I can whip up some scripts to replace, e.g., <dtml-var
> standard_html_header> with the standard header, in all files, but.... I'm
> asking if there is some way to use Zope or a utility to write out the
> entire site _as it would be served to a visitor_, that is, with all DTML
> and page template logic replaced.
use wget to suck your website served by Zope to a bunch of static html
files.
"man wget" is your friend
> The second, less pressing but still vital question: how can Zope be used
> in such a way as to preserve the existing URL targets? That is, suppose
> the current URI is
> http://www.somesite.com/Documents/reflist/pubCategs/Categories.html, and
> that URI has been bookmarked by visitors: how, other than a redirection,
> can that URI be preserved in zope-logic?
I'm not sure I udnerstand your question, but I'd probably answer :
no problem : Just tell Zope to serve www.somesite.com
(e.g. with a SiteRoot object)
hth.
Jerome Alet