Re: [ZODB-Dev] IStorageIteration

2008-02-11 Thread Christian Theune
Hi, > On Feb 11, 2008, at 4:19 PM, Christian Theune wrote: >> Context could be given as a reference date that is opaque to the >> client >> and can differ from storage to storage, a file pointer could serve >> this >> purpose. The API still might include the `length` of the data returned >> to min

Re: [ZODB-Dev] IStorageIteration

2008-02-11 Thread Jim Fulton
On Feb 11, 2008, at 4:19 PM, Christian Theune wrote: Context could be given as a reference date that is opaque to the client and can differ from storage to storage, a file pointer could serve this purpose. The API still might include the `length` of the data returned to minimize round-trips.

Re: [ZODB-Dev] IStorageIteration

2008-02-11 Thread Christian Theune
Jim Fulton schrieb: > > On Feb 11, 2008, at 1:25 PM, Christian Theune wrote: > >> Hi, >> >> Jim Fulton schrieb: >>> On Feb 11, 2008, at 1:19 PM, Christian Theune wrote: >>> ... >> Also, this code isn't ZEO-compatible (apart from the fact that >> ClientStorage doesn't implement the interf

Re: [ZODB-Dev] IStorageIteration

2008-02-11 Thread Jim Fulton
On Feb 11, 2008, at 1:25 PM, Christian Theune wrote: Hi, Jim Fulton schrieb: On Feb 11, 2008, at 1:19 PM, Christian Theune wrote: ... Also, this code isn't ZEO-compatible (apart from the fact that ClientStorage doesn't implement the interface). How so? As far as I understand, ZEO can't p

Re: [ZODB-Dev] IStorageIteration

2008-02-11 Thread Christian Theune
Hi, Jim Fulton schrieb: On Feb 11, 2008, at 1:19 PM, Christian Theune wrote: ... Also, this code isn't ZEO-compatible (apart from the fact that ClientStorage doesn't implement the interface). How so? As far as I understand, ZEO can't pass iterators around directly but needs to provide at l

Re: [ZODB-Dev] IStorageIteration

2008-02-11 Thread Jim Fulton
On Feb 11, 2008, at 1:19 PM, Christian Theune wrote: ... Also, this code isn't ZEO-compatible (apart from the fact that ClientStorage doesn't implement the interface). How so? As far as I understand, ZEO can't pass iterators around directly but needs to provide at least some wrapping code

Re: [ZODB-Dev] IStorageIteration

2008-02-11 Thread Christian Theune
Hi, Jim Fulton schrieb: FileStorage.FileStorage is the only class in the current ZODB code that implements this. I'm a little surprised. We too. :) Also, this code isn't ZEO-compatible (apart from the fact that ClientStorage doesn't implement the interface). How so? As far as I underst

Re: [ZODB-Dev] IStorageIteration

2008-02-11 Thread Jim Fulton
On Feb 11, 2008, at 8:58 AM, Christian Theune wrote: Hi, the interface IStorageIteration says: class IStorageIteration(Interface): """API for iterating over the contents of a storage Note that this is a future API. Some storages now provide an approximation of this. """ [..

[ZODB-Dev] IStorageIteration

2008-02-11 Thread Christian Theune
Hi, the interface IStorageIteration says: class IStorageIteration(Interface): """API for iterating over the contents of a storage Note that this is a future API. Some storages now provide an approximation of this. """ [...] ZODB.FileStorage.FileStorage is the only class