[Zope-CMF] how to automate content uploads

Jean-Francois.Doyon@CCRS.NRCan.gc.ca Jean-Francois.Doyon@CCRS.NRCan.gc.ca
Tue, 14 Jan 2003 17:32:38 -0500


You can write your own loader that acts as a fake web client basically.

I wrote one using perl (I knew it best at the time) a "mass-loader" for CMF
content for instance.  It just "pretends" to be a browser, talking to Zope
via HTTP and so on. Goes through your file system, detects the file type,
and create an appropariate object on the server, then loads the content, it
even has a way to extract metadata from a tab-delimited file and post that
too!

Zope comes with site_loader.py, which is NOT CMF aware (Plone is built on
top of CMF right?), it's a good starting point to do what you want.

If you want I can provide you mine, probably won't work for you (No idea how
Plone works), but it can also be a good template to work from.

It's a bit of work at first, but if you do mass uploads regularely, or just
have a LOT of content, it's totally worth it.

Cheers,
J.F.

-----Original Message-----
From: csheldon@cruzio.com [mailto:csheldon@cruzio.com]
Sent: Tuesday, January 14, 2003 5:25 PM
To: zope-cmf@zope.org
Cc: csheldon@cruzio.com
Subject: [Zope-CMF] how to automate content uploads


How can one automate the upload of numerous content
folders and files?

We want to upload several hundred content folders
and several hundred content files to a Plone site 
without ruining our wrist tendons doing it manually.
We need to do this now, so cannot wait for major
enhancements to be planned and implemented.



_______________________________________________
Zope-CMF maillist  -  Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests