On Fri, May 02, 2008 at 10:17:46PM +0800, Yuan HOng wrote: > Is it possible to find out what other objects are referencing a > particular object in ZODB?
Not easily -- you'd have to traverse the object graph yourself to see if you can find any references. > In particular, I want to prevent some content objects, like images, > from being removed from the folder if they are used in some other > content object, like a news article. > > Do I have to keep track of object referencing in ZODB myself through > events or there are some built-in mechanism in ZODB to take care of > this for me? Your best bet is to keep track of this yourself. Indexes and catalogs may help. Marius Gedminas -- Given enough eyeballs all bugs are shallow. -- Eric S. Raymond, "The Cathedral and the Bazaar"
Description: Digital signature
_______________________________________________ Zope3-users mailing list Zope3email@example.com http://mail.zope.org/mailman/listinfo/zope3-users