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

Jim Fulton jim at zope.com
Fri Oct 24 10:37:44 EDT 2008


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. 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
>>>>> currently supported.
>>>> That doesn't sound like "factored in" to me, that sounds like  
>>>> bodged and
>>>> ignored ;-)
>>>
>>> No. I was pointing out that Jeff first does a pickle and then the
>>> export. *His* pickle breaks it. The export works: it exports the  
>>> (then
>>> empty) blob.
>>
>> What should he have done to get the blob to export as expected?
>
> 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.
>
> From the export mechanism's perspective he simply exported an empty
> blob. If the blob had data it would be there.


Ah, cool.

Jim

--
Jim Fulton
Zope Corporation




More information about the ZODB-Dev mailing list