Re: HTML-Site Import
Hello, I want to import a static HTML web site (about 10 directories, 100 HTML pages, 10 PDF Files, Images ...) into Zope 2.1.4 But I couln't find any documentation about it. Ok, I found load_site.py ./load_site.py [options] url file ..... But: Which 'url' should I pass here? Does 'file' mean that I only can import one file an not a whole directory tree? Where can I find more information? Thank you Veikko -- Veikko Wünsche vw@lightwerk.de http://www.lightwerk.de/
On Wed, 1 Mar 2000, Veikko Wuensche wrote:
Ok, I found load_site.py ./load_site.py [options] url file .....
But: Which 'url' should I pass here?
It is an URL to a Zope folder. If, for example, you've installed Zope on http://my.server/path/to/Zope/, and you want to upload your site into http://my.server/path/to/Zope/virtual/site (the folder /virtual/site should be created before using load_site.py), the URL will be just http://my.server/path/to/Zope/virtual/site
Does 'file' mean that I only can import one file an not a whole directory tree?
The file can be a file, or a directory, or a list of files and directories... Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
thanks. I've imported the data now. with python ./load_site.py -D -u superuser:pwd http://host:8080/ directory There are 2 problems now: 1) HTML character references are only imported within quotes. The line <a href="#Einführung">Einführung</a> is imported as <A href="#Einführung">Einfhrung</A> and Transportmittel unerläßlich. is imported as Transportmittel unerllich. 2) file names are used as the DTML document Id e.g. index.html It seems to me, that index_html is the default DTML document within a Zope directory. Can or should I change it to index.html? And where? Thanks Veikko -- Veikko Wünsche vw@lightwerk.de http://www.lightwerk.de/
On Wed, 1 Mar 2000, Veikko Wuensche wrote:
python ./load_site.py -D -u superuser:pwd http://host:8080/ directory
There are 2 problems now:
1) HTML character references are only imported within quotes. The line <a href="#Einführung">Einführung</a> is imported as <A href="#Einführung">Einfhrung</A>
and Transportmittel unerläßlich. is imported as Transportmittel unerllich.
Looks like a bug in HTML parsing. There is no simple solution for this. When I got some free time (and it shouldn't be in the nearest future) I'll add additional processing into the parser in load_site.py.
2) file names are used as the DTML document Id e.g. index.html It seems to me, that index_html is the default DTML document within a Zope directory. Can or should I change it to index.html? And where?
You don't need to. Just create DTML Methtod index_html and put <dtml-var index.html> in it. That's all. Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
Oleg Broytmann wrote:
2) file names are used as the DTML document Id e.g. index.html It seems to me, that index_html is the default DTML document within a Zope directory. Can or should I change it to index.html? And where?
You don't need to. Just create DTML Methtod index_html and put <dtml-var index.html> in it. That's all.
Or use CVS load_site which has a -I feature that for every index.html creates an appropriate index_html. -- -= This is NOT a pyramid scheme =- The SNAFU Principle: True communication is possible only between equals Itamar S.T. itamars@ibm.net
participants (3)
-
Itamar Shtull-Trauring -
Oleg Broytmann -
Veikko Wuensche