[ZODB-Dev] Blobs, Copies, and Exports (Zope 3)
Christian Theune
ct at gocept.com
Fri Oct 24 10:36:16 EDT 2008
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.
Christian
--
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20081024/71431722/attachment.bin
More information about the ZODB-Dev
mailing list