[zope2-tracker] [Bug 147843] Re: Feature request: support multiple objects for export / import

Tres Seaver tseaver at palladion.com
Sat Apr 17 17:35:35 EDT 2010


Looking at the patch, it seems to me that we should be able to solve
this problem without needing to modify the ZODB code.  For instance,
when the user selects multiple objects to export, the application could:

 - Create an instance of a fake-ish class, say CheshireCatFolder. ;)

 - Copy IDs and references for the selected items from the source folder
into the cat.

 - Assign the cat's '_p_jar' to match the source folder.

 - Ask the ZODB to do the export.

On import, we reverse the process if the top-level object is a
CheshireCatFolder:

 - Unpickle it.

 - Copy references out into the target folder, dealing appropriately
with conflicts.

 - Zap the cat, leaving nothing behind but a smile.

On no account does the cat ever get added to either source or target
folder, nor does it register with the transaction (that part might be
tricky).

-- 
Feature request: support multiple objects for export / import
https://bugs.launchpad.net/bugs/147843
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list