[pygtk] ZODB TreeModel

Chris S chrisspen at gmail.com
Thu Aug 3 06:44:01 WST 2006


I'm trying to display the root object of a Zope Database in a
Treeview. I've read the Treeview tutorial
(http://liw.iki.fi/liw/texts/gtktreeview-tutorial.html) and I've
reviewed requirements for a TreeModel
(http://www.pygtk.org/pygtk2reference/class-pygtkgenerictreemodel.html)
but I'm having a hard time understanding exactly how a TreeModel
provides data to the Treeview.

A ZODB is essentially one gigantic nested dictionary. However, it only
loads the portions that are directly requested by code. Is it possible
to write a TreeModel that can wrap this structure, or does the model
require that everything exist in memory? Can anyone suggest how I
should implement this model?

Thanks,
Chris


More information about the pygtk mailing list