Re: [ZODB-Dev] Getting all OIDs from a storage.

2006-05-02 Thread Jim Fulton
Jim Fulton wrote: ... I'm surprised I couldn't find a proposal for this. I think I'll work one one. It's at: http://www.zope.org/Wikis/ZODB/DatabaseConversionSupport Comments are welcome. :) Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (

Re: [ZODB-Dev] Getting all OIDs from a storage.

2006-05-02 Thread Christian Theune
Am Montag, den 01.05.2006, 16:07 -0400 schrieb Stephan Richter: > On Monday 01 May 2006 14:14, Jim Fulton wrote: > > I suggest that: > > > > - The storage should be required to return OIDs in the > >database at aproximately time the call was made. It should > >be acceptable to omit recent

Re: [ZODB-Dev] Getting all OIDs from a storage.

2006-05-01 Thread Stephan Richter
On Monday 01 May 2006 14:14, Jim Fulton wrote: > I suggest that: > > - The storage should be required to return OIDs in the >    database at aproximately time the call was made.  It should >    be acceptable to omit recent items.  The idea is that OIDs >    generated while the request is being sati

Re: [ZODB-Dev] Getting all OIDs from a storage.

2006-05-01 Thread Jim Fulton
Tim Peters wrote: [Christian Theune] Hmm. Sorry, but could you point out where the API is defined? I might not have looked hard enough. I only found internals to exploit. :( [Jim Fulton] I wish I could. I'm almost certain that Chris McDonough implemented one at PyCon 2005 and that Stephan

Re: [ZODB-Dev] Getting all OIDs from a storage.

2006-04-24 Thread Tim Peters
[Christian Theune] >> Hmm. Sorry, but could you point out where the API is defined? I might >> not have looked hard enough. I only found internals to exploit. :( [Jim Fulton] > I wish I could. I'm almost certain that Chris McDonough implemented > one at PyCon 2005 and that Stephan Richter made us

Re: [ZODB-Dev] Getting all OIDs from a storage.

2006-04-24 Thread Dieter Maurer
Jim Fulton wrote at 2006-4-24 10:48 -0400: > ... >I would like to have this. I can't find a proposal for it, so I >guess we should start with that, I'll note that I'd like to have an >interface like: > > oidIterator(class_glob='*') > > Returns an iterable of object ids whose dotted class n

Re: [ZODB-Dev] Getting all OIDs from a storage.

2006-04-24 Thread Christian Theune
Hi, Am Montag, den 24.04.2006, 10:48 -0400 schrieb Jim Fulton: > Christian Theune wrote: > > > > Hmm. Sorry, but could you point out where the API is defined? I might > > not have looked hard enough. I only found internals to exploit. :( > > I wish I could. I'm almost certain that Chris McDonou

Re: [ZODB-Dev] Getting all OIDs from a storage.

2006-04-24 Thread Jim Fulton
Christian Theune wrote: Am Montag, den 24.04.2006, 10:06 -0400 schrieb Jim Fulton: Christian Theune wrote: Hi, we are using Zope 3 generations to update ZODBs. Sometimes the default tools that traverse the object tree are not covering all bases. I opened access to the FileStorage index of O

Re: [ZODB-Dev] Getting all OIDs from a storage.

2006-04-24 Thread Christian Theune
Am Montag, den 24.04.2006, 10:06 -0400 schrieb Jim Fulton: > Christian Theune wrote: > > Hi, > > > > we are using Zope 3 generations to update ZODBs. Sometimes the default > > tools that traverse the object tree are not covering all bases. > > > > I opened access to the FileStorage index of OIDs

Re: [ZODB-Dev] Getting all OIDs from a storage.

2006-04-24 Thread Jim Fulton
Christian Theune wrote: Hi, we are using Zope 3 generations to update ZODBs. Sometimes the default tools that traverse the object tree are not covering all bases. I opened access to the FileStorage index of OIDs so we can iterate over those. (We are ignoring exceptions about POSKeyErrors at one