Import of existing Web-Sides (Sites :-))
-- Hello, i need a tip: I want to export existing Web-Documents in Zope (normal html Syntax) i know about two python modules a) load_site.py i used this one in the form python load_site.py -u superuser:**** -p /somwhere/Zpublisher /myhtmldir id worked obviosly something (python -v ...) but in Zpoe i did not see anything b) fsimpor i think i have to use it as externel method but i did not know how to provide the function call with an argument i tried to create a dtml-var fsimport in index.html after importing the external method fsaimport from Extensions but then i got stuck can anyone give me tips for both ? please do a cc to extern2.michael.arndt@audi.de since i have not subscribed to the list thanks Micha ======================================================== Michael Arndt science + computing gmbh c/o CAE-Systemservice Abt. I/FS-2, CAE Systeme, Visualisierung Tel. +49 (841) 89-37421 Fax -35093 mail extern.michael2.arndt@audi.de ========================================================
On Mon, 15 Nov 1999, Michael Arndt wrote:
python load_site.py -u superuser:**** -p /somwhere/Zpublisher /myhtmldir id worked obviosly something (python -v ...) but in Zpoe i did not see anything
I have no problems using load_site.py. Moreover, I modified it to upload files in more Zopish way. What do you mean by saying "did not see anything"? Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
Michael Arndt <extern.michael2.arndt@audi.de> asks:
b) fsimpor i think i have to use it as externel method but i did not know how to provide the function call with an argument i tried to create a dtml-var fsimport in index.html after importing the external method fsaimport from Extensions
but then i got stuck
can anyone give me tips for both ?
I can help you with fsimport. Once you have it set up as an External Method (all the fields in the Add External Method form should have been 'fsimport') you must construct a URL by hand to make it import files. Give it an argument with the name 'fsdir' and the value of the path of the folder or file you wish to import. Use Acquisition to tell fsimport where to place the files. Here's an example-- I have a Zope server at http://widgets.com. I have added fsimportto the root folder. I have Zope Folders at /docs and /docs/html, and on my file system I have a folder called /home/mike/docs with the files I want to import. The URL I use to load the files is: http://widgets.com/docs/html/fsimport?fsdir=/home/mike/docs Mike.
participants (3)
-
Michael Arndt -
Mike Pelletier -
Oleg Broytmann