[ZODB-Dev] How can I append Persistent mechanism to OrderedDict class ?

Andreas Jung lists at zopyx.com
Sun Jan 30 06:04:40 EST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stéphane Klein schrieb:
> Hi,
> 
> I would like to use a Persistent Ordered dict.
> I use OrderedDict (http://pypi.python.org/pypi/ordereddict).
> How can I append Persistent mechanism to this OrderedDict class ?

What is the particular problem? As look as a Python object can be
pickled it can be persisted within the ZODB. The only issue you will
encounter that you have to notify the container object the _p_changed
variable upon changes (see http://www.zodb.org/).

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJNRUXIAAoJEADcfz7u4AZjnyILwOJUkYxdxhEad49TRfI4BuZ5
cqfndCiNs1w4sAbXyrCsrgiSVPH6P0CgnsspLVjOUXJ0tXAmtem48SWVx0FHiIl7
21bG3IRYD5R4SCPxyCVNTneRjgQpsSc4MRJ0qWaGEjZwtu/NikB/su0hb/QepYiJ
Ok86/ipI7sgi9z6qDgFbePP2Z3tVcK8/djkj8QGnOimFR+ccX2qF/JBevSPFZByD
DL5IcDbBLeKEohTsD/Q1v9b14iQTs5sHab3CyHOE4Vnhn7ZLNu2VyyMbnvJz+A12
j0NiRjd7bhdj/Xsn0lNuPnR5cdUFiabYAkFW4zkDfsjO5One75/60ckS+3yOWkf1
CQ26e7/75wdi7OFPX8QjjWJ49g5ipt4m79Amti8pFibTNURO0CUKBRWjNjGPVNBT
4JDiqdjpu3juj5wykqrhm7x9G5+fUfl9TG7Gx5bEB14xTGgEvvHrWoM18dZq9In2
TkAtS8hO6Pan4DJI6s0xgYrPVPNjbgw=
=Dkd4
-----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/20110130/d4efb12d/attachment.vcf 


More information about the ZODB-Dev mailing list