[ZODB-Dev] Fixing POSKeyErrors :-)

Shane Hathaway shane at hathawaymix.org
Wed Feb 13 10:48:56 EST 2008


Chris Withers wrote:
> I did try this:
> 
>  >>> data._p_jar = app._p_jar
>  >>> data._p_oid = oid
>  >>> app.x = data
>  >>> import transaction
>  >>> transaction.get().note('Fix POSKeyError')
>  >>> transaction.commit()
> 
> ...but it didn't work. I don't know if the differences are significant.

"app.x = data" won't work because the Connection will think that since 
the object already has an OID, the object must be in the cache already.

Shane



More information about the ZODB-Dev mailing list