[Zope-dev] persistence and lists

Lennart Regebro lennart@torped.se
Wed, 18 Sep 2002 23:58:35 +0200


From: "Arndt Droullier" <ad@dvelectric.com>
> How can I save the list/dictionaries after changes?

The easiest thing to do is to is to use PersistentMapping and
PersistentList.
Create them in __init__ with "self.dictionary = PersistentMapping()" instead
of setting them as a class attribute.