Re: [Zope] uploading a batch of files
Jonathan Park writes:
I need to upload a batch of files into the zope database, what would be the best way???? FTP, mput? More difficult: a Python script generating appropriate HTTP Post requests
Dieter
On Mon, 22 May 2000, Dieter Maurer wrote:
FTP, mput? More difficult: a Python script generating appropriate HTTP Post requests
An equally difficult alternative to b: a temporary python external method that creates file objects and reads the content from the file system. Perhaps the load_site (or whatever it's name is) product would help with this? I've never looked at it. --RDM
This could be implemented in javascript. After using a form to get a list of files to upload, use javascript to launch a new window that would be used to programatically upload the files one at a time. When each upload finishes the reply from the server would include javascript code to notify the "opener" window to rewrite the upload window with the needed information for the next file and submit it. This would continue until all files have been uploaded. Jim Sanford ----- Original Message ----- From: "R. David Murray" <bitz@bitdance.com> To: "Jonathan Park" <jpark@amazingmedia.com> Cc: <zope@zope.org> Sent: Monday, May 22, 2000 5:43 PM Subject: Re: [Zope] uploading a batch of files On Mon, 22 May 2000, Dieter Maurer wrote:
FTP, mput? More difficult: a Python script generating appropriate HTTP Post requests
An equally difficult alternative to b: a temporary python external method that creates file objects and reads the content from the file system. Perhaps the load_site (or whatever it's name is) product would help with this? I've never looked at it. --RDM _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
There's an external method that loads a batch of files from the local machine into the zope database. I've got a copy if you're interested, since I can't seem to find it on the site anymore. --jfarr "Perl is worse than Python because people wanted it worse." Larry Wall, 14 Oct 1998 ----- Original Message ----- From: R. David Murray <bitz@bitdance.com> To: Jonathan Park <jpark@amazingmedia.com> Cc: <zope@zope.org> Sent: Monday, May 22, 2000 3:43 PM Subject: Re: [Zope] uploading a batch of files
On Mon, 22 May 2000, Dieter Maurer wrote:
FTP, mput? More difficult: a Python script generating appropriate HTTP Post requests
An equally difficult alternative to b: a temporary python external method that creates file objects and reads the content from the file system.
Perhaps the load_site (or whatever it's name is) product would help with this? I've never looked at it.
--RDM
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
"R. David Murray" wrote:
Perhaps the load_site (or whatever it's name is) product would help with this? I've never looked at it.
Yes - it has command line and GUI clients for uploading multiple files to Zope. And you shouldn't use the one included with Zope - it trashes HTML entities like &. It runs over HTTP so it doesn't need FTP access to Zope. http://www.zope.org/Members/itamar/load_site -- Itamar S.T. itamar@maxnm.com
participants (5)
-
Dieter Maurer -
Itamar Shtull-Trauring -
Jim Sanford -
Jonothan Farr -
R. David Murray