[ZODB-Dev] example for the following?
Andreas Jung
lists at zopyx.com
Thu Jan 22 12:26:31 EST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 22.01.2009 17:46 Uhr, Jamie McQuay wrote:
> Hi,
>
> I'm using ZODB in a desktop app (i.e. not using zope).
>
> I have class A which contains a list of instances for class B.
>
> I can persist class A when the list of class B is empty. When i add an
> instance of class B to the list (and set _p_changed = 1) i get the error:
> "TypeError: can't pickle PySwigObject objects"
>
The error is self-speaking: the related object is not picklable and can
not be persistent within the ZODB.
- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkl4rEcACgkQCJIWIbr9KYyQUgCfW8Qfte8pshSEi8mcxGzcKBE4
B0UAnjy2Yjv3PmEtCfw9ZNHtNno084zJ
=QQlO
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20090122/eff12569/attachment.vcf
More information about the ZODB-Dev
mailing list