[Zope3-Users] What attributes are made persistent

Lennart Regebro regebro at gmail.com
Tue Feb 14 16:59:14 EST 2006


On 2/14/06, Florian Lindner <mailinglists at xgm.de> wrote:
> Hello,
> in a class derived from Persistent, which attributes are stored? All or only
> those thar are declared in the interface?

All.

>     def __init__(self):
>         self.queue = {}
>
>
> self.queue seem is empty each time I restart Zope.

That's because dictionaries are not derived from Persistent. Try PersistentDict.

--
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/


More information about the Zope3-users mailing list