16 Jul
2004
16 Jul
'04
2:21 p.m.
In article <efc3518404071606004a444b82@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@nuxeo.com