[ZODB-Dev] Navigating inherently hierarchical data

Chris Withers chris at simplistix.co.uk
Sat Aug 4 06:59:21 EDT 2007


Tommy Li wrote:
> I don't understand how I can use ZODB to do this, however. From what I 
> can gather from reading the manual, if I simply stored variables 
> referring to the parent and children in every TreeNode, I'd end up 
> storing the whole tree of TreeNodes's every time I wanted to store that 
> one TreeNode. (Presumably, because ZODB would follow all the references 
> recursively.)

This won't happen if the classes for your objects inherit from the 
Persistent class.

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the ZODB-Dev mailing list