[Zope] uploading multiple files into zope

Joe Gaffey Joe.Gaffey@gradient.ie
Thu, 23 Aug 2001 10:38:32 +0100


Thanks for that.

FYI: I needed to upload the docs as object type HTMLDocument, so I used info
I found at
http://lists.zope.org/pipermail/zope-dev/1999-November/002316.html - a bit
of a hack but it does the job.

Works a treat :)

 -- a happy camper.


-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Peter
Bengtsson
Sent: Wednesday, August 22, 2001 1:29 PM
To: Joe Gaffey; zope@zope.org
Subject: Re: [Zope] uploading multiple files into zope


> Hi all,
>
> I have my site all set up and ready to rock (I think :), so now I would
like
> to upload my files from my old system.  I was planning on ftp'ing them
> (mostly just html files) in but realised that thay are spread over a
> multitiude of subdirectories.  Usually one would normally just tar the
whole
> thing, ftp the tar and then untar at the other side, but of course I can't
> do this in zope (or can I?).
>
> Is there any easy way of moving (over 5,000 files in about 800 dirs)
without
> doing each subdirectory individually?  Maybe this is not a zope question?

That'll be the load_site script module

In windows:
C:\program files\zope>python utilities/load_site.py -u username:password
http://localhost:8080/site d:\data\oldsite

There are two improved versions of it floating around out there. Use the
mailing list archive to find it.
Basically, the improvement you might need is that it doesn't overwrite
existing folders.




> Any suggestions welcome.........
> Joe.
>
>
>
> Joe Gaffey
> Software Developer
> Gradient - a Sabre Company
>
> Ormonde House Tel: + 353 1 2400 500
> 12 Lower Leeson Street Fax: + 353 1 2400 501
> Dublin 2 Email: joe.gaffey@gradient.ie
> Ireland
>
> Web: www.gradient.ie
> www.sabre.com
>
>
>
>
>
> _______________________________________________
> 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 )


_______________________________________________
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 )