[ZODB-Dev] Re: Local transactions and mount points
Jeremy Hylton
jeremy at zope.com
Tue Feb 24 16:40:36 EST 2004
On Tue, 2004-02-24 at 14:15, Dieter Maurer wrote:
> [JH]
> >If you have multiple ZODB connections, you could call
> >setLocalTransaction() on each of them and pass the same transaction. In
> >this case, you're opting for explicit coordination instead of the
> >implicit coordination you get by default.
>
> [DM]
>
> My code (Zope 2.7; ZODB 3.2) looks like:
>
> def setLocalTransaction(self):
> """Use a transaction bound to the connection rather than the thread"""
>
> This code does not have a way to pass the same transaction in.
Oh, right. I forgot that the code creates the transaction locally. I
think the interface would be nicer if you could pass a Transaction
instance to db.open().
Jeremy
More information about the ZODB-Dev
mailing list