[ZODB-Dev] Weird KeyError with OOBTree

Pedro Ferreira jose.pedro.ferreira at cern.ch
Mon Aug 16 12:29:34 EDT 2010



> Consider using one
> of these alternatives instead:
>
> * Set the IOTreeSet as an attribute directly on the persistent object.
>    

You mean on the persistent object I am using as key?

> * Use http://pypi.python.org/pypi/zope.intid and use the intid for the
> key. (This uses http://pypi.python.org/pypi/zope.keyreference which
> uses the referenced object's oid and database name to perform the
> comparison, avoiding the need to load the persistent object.)
>    

This looks really nice. However it seems to depend on a lot of zope 
libraries that I'm currently including: location, component, security... 
well, I guess they're not that large. I will give it a look, maybe I'll 
use it.

Thanks a lot!

Pedro

-- 
José Pedro Ferreira

Indico Team

IT-UDS-AVC

513-R-0042
CERN, Geneva, Switzerland



More information about the ZODB-Dev mailing list