[Zope] LOAD_SITE

Milos Prudek milos.prudek@tiscali.cz
Thu, 21 Feb 2002 11:17:55 +0100


Zimmermann, Mark wrote:
> how can i use load_site ? is there a how to available ?
> 
> cu
> Mark

A load_site how-to, using a simple example:

I will assume that your Zope runs at port 8080, and user "mark" with 
password "secret" can read/write the whole Zope.

Please create a directory in your home, name it "upload". Put the files 
you want to upload into this directory.

Go to the directory where load_site.py dwells.

Run this (single line):

python2 load_site.py -D -u mark:secret -p 
/usr/local/Zope/lib/python/ZPublisher -v http://localhost:8080 ~/upload

The directory "upload" will be created for you in Zope by load_site.

NOTE: Make sure that none of the files in upload directory starts with 
an _ underscore. This is especially annoying for Dreamweaver
which creates the _notes file in each subdirectory. To delete _notes 
from your tree, do this:

find -name _notes  -exec rm -rf '{}'  ';'

-- 
Milos Prudek