12 Dec
2003
12 Dec
'03
11:34 p.m.
On Thu, Dec 11, 2003 at 11:03:35PM -0500, Jim Fulton wrote:
3. The hard part is walking the object tree. You will need a function that, given an object, will return the oids of the objects it references. Perhaps Jeremy can help you with that.
Perhaps some of the zodb utilities contain code that might be useful as a starting point? fsrefs.py, checkbtrees.py...
5. You will want to keep a dictionary of the oids visited, just in case there are any cyles.
I believe the version of checkbtrees.py in cvs now does that. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's PENGUIN FINALE! (random hero from isometric.spaceninja.com)