[Zope-dev] ZODB: interface for walking object graph?

R. David Murray bitz@bitdance.com
Thu, 23 Mar 2000 16:31:14 -0500 (EST)


On Thu, 23 Mar 2000, Andrew M. Kuchling wrote:
> I'd like a way to find all instances of a given class in a ZODB.  (In

You probably already know this, but if your classes are CatalogAware,
and you index on meta_type, then you can use the Catalog and its
getPath method to walk the list of class instances.  True, this
isn't a general solution, but it will work in a lot of cases.

--RDM