Shane Hathaway wrote:
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.

Ah okay, then I'd suggest your alernative :-)

(it's easy enough to test using the recipe in my original post, but I haven't...)

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to