[ZODB-Dev] get_transaction

Jim Fulton jim@zope.com
Sat, 01 Dec 2001 12:35:49 -0500


kapil thangavelu wrote:
> 
> i uploaded some code and emailed the list

(snip)

> i'd welcome any opinions from the zodb gurus that frequent here.

I like what you've done.  I want to ponder it.  In any case, 
I want to move toward making it possible to control transactions
on a per-connection basis.  

I've taken a small step in this direction in the experimental
work that can be found at:

http://cvs.zope.org/Zope3/lib/python/Persistence/?only_with_tag=Zope-3x-branch

http://cvs.zope.org/Zope3/lib/python/Transaction/?only_with_tag=Zope-3x-branch

http://cvs.zope.org/Zope3/lib/python/ZODB/?only_with_tag=Zope-3x-branch

Specifically, I'm going to have persistent object call register 
on their data managers, rather than calling get_transaction. This
will put transaction control with the connection itself. I was thinking
of providing an interface to create a transaction for a connection
that would be deleted when the connection is closed, although I've
done little more than ponder at this point.

Jim

--
Jim Fulton           mailto:jim@zope.com       Python Powered!        
CTO                  (888) 344-4332            http://www.python.org  
Zope Corporation     http://www.zope.com       http://www.zope.org