Hi, I suppose, I have a newbie problem, I want to export file from zope file system, to local machine, for example I have directory with 50 text files, and I want in some programmatic way export all this files to the local machine (e.g. after press the button on the dtml-mehod), maybe someone know how can I do it? thank for help, regards Adam
On Thu, 2004-05-13 at 13:24, hawelek_tlen wrote:
I want to export file from zope file system, to local machine, for example I have directory with 50 text files, and I want in some programmatic way export all this files to the local machine (e.g. after press the button on the dtml-mehod),
Do you need to write the files on demand, or can you pull the files from zope to the filesystem via wget, xml-rpc + python, or something similar? If you need to download all of the files at once, you could write an external method that would call the python zipfile module to create a combined set of your files on the fly. Jud -- Jud <lists@dagnall.net> http://www.dagnall.net
On 13 May 2004 at 15:10, you wrote:
I want to export file from zope file system,
to local machine,
for example I have directory with 50 text files, and I want in some programmatic way export all this files to the local machine (e.g.
Dunno if I am missing something, but I use FTP as the file manager between the ZODB and local FS. Cliff ============================================ fishAbility Management and Communications Cliff Quinn Victoria, BC, Canada 250-727-7879 http://fishAbility.biz/
Hi, thanks for answer, I don't need to write these files on demand, I need only some function, that will export those 50 files on localmachine, but I want to execute it from the dtml-method, I don't how can I use wget, xml-rpc + python, I'm newbie:) best regards Adam
On Fri, 2004-05-14 at 04:22, hawelek_tlen wrote:
I don't need to write these files on demand, I need only some function, that will export those 50 files on localmachine, but I want to execute it from the dtml-method, I don't how can I use wget, xml-rpc + python, I'm newbie:)
It might be helpful to understand the higher-level problem you're trying to solve, i.e. Why do you want to get the data out of zope as a dtml method? Do you need to do this once a week, every day or hourly? Why is dtml important? wget is a command line utility that can (among other things), download web pages to your local machine. You could, for instance, create a directory index page that had only a list links to each of the 50 items in your folder. You could then point wget at the index page and have it retrieve all of the linked files. You'll need to look at the wget usage instructions for the details, but it's straightforward. Jud -- Jud <lists@dagnall.net> http://www.dagnall.net
Hi, so I make a portal for delivering students-sql solution, those solutions are at first in db, but than I'll make automatic files with those solutions, and one per a week I'll have to export in some way this files on localhost, because it,s necessary for other purpose, I'll try to train wget, maybe it's good idea for my tasks, thanks for help, best regards, Adam
participants (3)
-
Cliff Quinn -
hawelek_tlen -
Jud Dagnall