[Zope-dev] Granularity of Persistent Objects

Ian Beatty ian.beatty at gmail.com
Fri Jul 16 09:00:35 EDT 2004


> > 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??

Thanks,

..Ian


More information about the Zope-Dev mailing list