[Zope-dev] Granularity of Persistent Objects

Lennart Regebro regebro at nuxeo.com
Fri Jul 16 04:59:13 EDT 2004


Ian Beatty wrote:
> However, I don't know how to do this. Is it as simple as using a
> PersistentMapping where I'd normally use a standard Python dictionary?

Well, yes.

> Or shall I wrap each one in a custom class that subclasses Persistent?

That is usually an even better idea. And for big dictionaries, you may 
want to use the BTree objects for storage.



More information about the Zope-Dev mailing list