On Friday 10 October 2003 18:34, Dieter Maurer wrote: > Toby Dickenson wrote at 2003-10-10 07:54 +0100: > > ... > > A while ago there was a discussion on zodb-dev about _v_-like attributes > > that would be automatically cleared at the end of a transaction. Do we > > need something similar that guarantees it will _not_ be cleared until > > the end of the transaction? > > This definitely is necessary for the "_v_" attributes that hold > connections to a relational database. > > If such a "_v_" attribute is flushed, the next access to the DA > (in the same request) reopens the database. As this is a new > connection, it does not see the changes made by the previous > connection (in the same request).
Thats how alot of code works today, and how it had to be done in the past. Today we have the 'transaction participant' interface. That would be a better place to hold these things, allowing the DA object itself to be deactivated if necessary. -- Toby Dickenson _______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )