Re: [ZODB-Dev] Blobs, Copies, and Exports (Zope 3)

2008-10-24 Thread Christian Theune
On Fri, 2008-10-24 at 11:45 -0600, Jeff Shell wrote: > On Oct 24, 2008, at 8:36 AM, Christian Theune wrote: > > Again: blobs export as expected. > > > > However, Jeff pickles/unpickles the subtree to get rid of the > > '__parent__' attribute. This and blobs' inability to get copied around > > in th

Re: [ZODB-Dev] Blobs, Copies, and Exports (Zope 3)

2008-10-24 Thread Jeff Shell
On Oct 24, 2008, at 8:36 AM, Christian Theune wrote: > Again: blobs export as expected. > > However, Jeff pickles/unpickles the subtree to get rid of the > '__parent__' attribute. This and blobs' inability to get copied around > in this specific manner make him end up with empty blobs. This is th

Re: [ZODB-Dev] Blobs, Copies, and Exports (Zope 3)

2008-10-24 Thread Jeff Shell
On Oct 24, 2008, at 7:51 AM, Jim Fulton wrote: > A few high-level observations. (I don't have time to get into the > weeds.) > > 1. The parent pointers used in Zope 3 are, obviously, a problem for > ZODB exports. You've already noticed this. > A possible way to mitigate this would be to e

Re: [ZODB-Dev] Blobs, Copies, and Exports (Zope 3)

2008-10-24 Thread Jeff Shell
On Oct 24, 2008, at 5:06 AM, Christophe Combelles wrote: >> What can I do here? I'm in the midst of a botched deployment of some >> content updates for a customer. I thought that copying something >> 'containing' a Blob would cause its contents to be copied. If this is >> an exercise for applicatio

Re: [ZODB-Dev] Blobs, Copies, and Exports (Zope 3)

2008-10-24 Thread Jim Fulton
On Oct 24, 2008, at 10:36 AM, Christian Theune wrote: > On Fri, 2008-10-24 at 15:22 +0100, Chris Withers wrote: >> Christian Theune wrote: >>> On Fri, 2008-10-24 at 15:06 +0100, Chris Withers wrote: Christian Theune wrote: > On Fri, 2008-10-24 at 09:51 -0400, Jim Fulton wrote: >> 2.

Re: [ZODB-Dev] Blobs, Copies, and Exports (Zope 3)

2008-10-24 Thread Christian Theune
On Fri, 2008-10-24 at 15:22 +0100, Chris Withers wrote: > Christian Theune wrote: > > On Fri, 2008-10-24 at 15:06 +0100, Chris Withers wrote: > >> Christian Theune wrote: > >>> On Fri, 2008-10-24 at 09:51 -0400, Jim Fulton wrote: > 2. I doubt that blobs have been factored into ZODB exports. Th

Re: [ZODB-Dev] Blobs, Copies, and Exports (Zope 3)

2008-10-24 Thread Chris Withers
Christian Theune wrote: > On Fri, 2008-10-24 at 15:06 +0100, Chris Withers wrote: >> Christian Theune wrote: >>> On Fri, 2008-10-24 at 09:51 -0400, Jim Fulton wrote: 2. I doubt that blobs have been factored into ZODB exports. This is, obviously, an oversight. >>> They were factored in a

Re: [ZODB-Dev] Blobs, Copies, and Exports (Zope 3)

2008-10-24 Thread Christian Theune
On Fri, 2008-10-24 at 15:06 +0100, Chris Withers wrote: > Christian Theune wrote: > > On Fri, 2008-10-24 at 09:51 -0400, Jim Fulton wrote: > >> 2. I doubt that blobs have been factored into ZODB exports. This is, > >> obviously, an oversight. > > > > They were factored in and we have tests. Howe

Re: [ZODB-Dev] Blobs, Copies, and Exports (Zope 3)

2008-10-24 Thread Jim Fulton
On Oct 24, 2008, at 10:00 AM, Christian Theune wrote: > On Fri, 2008-10-24 at 09:51 -0400, Jim Fulton wrote: >> 2. I doubt that blobs have been factored into ZODB exports. This is, >> obviously, an oversight. > > They were factored in and we have tests. However, the initial pickle > will empty th

Re: [ZODB-Dev] Blobs, Copies, and Exports (Zope 3)

2008-10-24 Thread Chris Withers
Christian Theune wrote: > On Fri, 2008-10-24 at 09:51 -0400, Jim Fulton wrote: >> 2. I doubt that blobs have been factored into ZODB exports. This is, >> obviously, an oversight. > > They were factored in and we have tests. However, the initial pickle > will empty them: copying blobs this way in

Re: [ZODB-Dev] Blobs, Copies, and Exports (Zope 3)

2008-10-24 Thread Christian Theune
On Fri, 2008-10-24 at 09:51 -0400, Jim Fulton wrote: > 2. I doubt that blobs have been factored into ZODB exports. This is, > obviously, an oversight. They were factored in and we have tests. However, the initial pickle will empty them: copying blobs this way including their content isn't curren

Re: [ZODB-Dev] Blobs, Copies, and Exports (Zope 3)

2008-10-24 Thread Jim Fulton
A few high-level observations. (I don't have time to get into the weeds.) 1. The parent pointers used in Zope 3 are, obviously, a problem for ZODB exports. You've already noticed this. A possible way to mitigate this would be to extend the export API to be able to omit objects from t

Re: [ZODB-Dev] Blobs, Copies, and Exports (Zope 3)

2008-10-24 Thread Christophe Combelles
Jeff Shell a écrit : > For the past few years we've been using an ugly, but working, trick to > export data out of a Zope 3 instance without exporting every bit of > content. Given an object to export, we use > 'locationCopy' (zope.location.pickling) to get a deep copy, set the > __parent__