"Detaching" sub objects from a folder for the purpose of say export is something I would really like to do as well. If you figure this out (without deleting and undeleting), let me know... :)
If all these photos are in one folder, is it possible to script a bunch of export / imports excluding that folder?
Doesn't matter if they are in one folder or many. The only problem is to have an object to run the scripts against. I already have a script that recursivly loops through an object (folderish may it be) and manage_delObjects() on the requested non-wanted meta types. But could run this script on copy_of_mysite if I only could get that object in the first place. I have the tools for a small site. Peter
Cheers. -- Andy McKay.
----- Original Message ----- From: "Peter Bengtsson" <mail@peterbe.com> To: <zope@zope.org> Sent: Monday, June 11, 2001 7:17 AM Subject: [Zope] Solution for copying a site
My site is a bunch of Zope object such as DTML *, Images, Python Script, etc.etc. The heaviest part of it is the photos collection which is about 100 Mb if you click Export and look at the filesize of the zexp file. If I Export my whole site the zexp file would probably be about 105 Mb or something like that.
Now I'd like to Export my site and 1) back up the functionality 2) take the rest home a work on it locally Shipping a 100 Mb file back and forth hom is not an option. One option would be to copy the whole site inside Zope and then have a script that removes all Photos from the copy and then Export the "emptied" copy. I have the script to do that, but I can't copy because the content is probably too big and I get errors from IOError.
Does anybody have a good solution? I'd ultimatly like to click SpecialExport and filter some object and then wrap it up with the good old manage_exportObjects()
Peter
_______________________________________________ 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 )