On May 12, 2007, at 1:00 PM, Paul Winkler wrote:
On Sat, May 12, 2007 at 10:44:34AM -0400, Jim Fulton wrote:
I've releases ZODB 3.8.0a1 tp PyPI:
To see what's in 3.8.0, see the news file:
This also includes the recent storage API standardization's, removal
of subtransactions, and deprecation of versions. I should have
included that in the NEWS file. I'll fix that for the next release.
I belatedly realized I have some old test code that uses a
"subtransaction hack" to get a _p_jar and _p_oid:
# do something needing _p_jar or _p_oid
What's the correct thing to do now?
You can create a savepoint or you can use the connection add method
to give a new object a _p_jar and _p_oid before a commit. (There are
cases where the object of interest isn't handy and using a savepoint
if more convenient.)
Are savepoints relevant for this
I don't think this idiom was ever formally documented, it
was just an informal hack that I picked up somewhere (I forget from
I've used this trick with savepoints.
Jim Fulton mailto:[EMAIL PROTECTED] Python
CTO (540) 361-1714
Zope Corporation http://www.zope.com http://www.zope.org
For more information about ZODB, see the ZODB Wiki:
ZODB-Dev mailing list - ZODB-Dev@zope.org