[ZODB-Dev] Typechecking oid in getitem
Christian Reis
kiko at async.com.br
Mon May 19 13:22:54 EDT 2003
On Mon, May 19, 2003 at 10:59:28AM -0400, Jeremy Hylton wrote:
> The type of an oid depends on the storage, so there is no guarantee that
> it will be a string. In fact, ZODB4 storages will soon change to using
> Python longs. APE uses tuples IIRC.
Hmmm. So would the correct fix be to implement API so the storage can
inform what type the OID should be? I could implement something like:
storage.getOIDType()
that returned a TypeObject. Are other storage authors against this
change? It would make sanity checking easier AFAICT.
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
More information about the ZODB-Dev
mailing list