[Zope] File transfer with Zope
Dieter Maurer
dieter@handshake.de
Tue, 17 Jul 2001 23:48:52 +0200 (CEST)
Nicolas Villetard writes:
> I'd like to offer users to upload text files to my server in order to
> be manipulated by external methods written in Python.
>
> I have still found only 2 possibilities :
>
> (1) : sending files with a HTML form. But does something exist in
> Python to manage HTTP files sending ??
When the file is sent with a HTML form, then sending is done
by the browser and not any Python...
Alternatively, you can use ZClient ("ZPublisher.Client"),
XML-RPC, FTP, WebDAV to "send" files to Zope.
> (2) : sending files by FTP. But how could I access files in Zope's file
> system from an external method ??
> Do libraries exist to manipulate Zope filesystem ?
The same way, you get files into Zope, you can get them out
again, e.g.
HTML ("ZPublisher.Client", "httplib", "urllib"),
FTP, XML-RPC, WebDAV
Dieter