[ZODB-Dev] List of modified objects
Jim Fulton
jim at zope.com
Thu Dec 2 08:43:59 EST 2004
Christian Robottom Reis wrote:
> On Thu, Dec 02, 2004 at 09:48:04AM +0100, Thomas Guettler wrote:
>
>>How can you get the list of all objects which where
>>modified in a transaction?
>>
>>I want to be sure that a read only access does not change
>>anything. The transaction gets finished with abort(). Before
>>the abort I like to check if the list of modified objects is empty.
>
>
> If you don't use subtransactions, it's an easy answer:
>
> connection.getTransaction()._objects
>
> If you do, I can't say I know.
Of course, because this relies on changable implementation
details, it's very brittle. For example, this won't
work reliably in ZODB 3.3.
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the ZODB-Dev
mailing list