[Zope-dev] Granularity of Persistent Objects
Florent Guillaume
fg at nuxeo.com
Fri Jul 16 10:21:25 EDT 2004
In article <efc3518404071606004a444b82 at mail.gmail.com> you write:
> > > 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.
>
> So in my containing class, I just have
>
> class MyContainer( Persistent ):
> subObject = None
> def __init__( self ):
> self.subObject = BTree()
>
> and etc.? That's all there is to it??
Yes, that's it. You can even store BTree's in BTree's if you fancy :)
Florent
>
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg at nuxeo.com
More information about the Zope-Dev
mailing list