-----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-----
begin:vcard fn:Andreas Jung n:Jung;Andreas org:ZOPYX Ltd. & Co. KG adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany email;internet:i...@zopyx.com title:CEO tel;work:+49-7071-793376 tel;fax:+49-7071-7936840 tel;home:+49-7071-793257 x-mozilla-html:FALSE url:www.zopyx.com version:2.1 end:vcard
_______________________________________________ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org http://mail.zope.org/mailman/listinfo/zodb-dev