[Zope3-checkins] CVS: Zope3/src/transaction - _transaction.py:1.1.2.14

Tim Peters tim.one at comcast.net
Fri Mar 19 17:02:46 EST 2004


Update of /cvs-repository/Zope3/src/transaction
In directory cvs.zope.org:/tmp/cvs-serv28980/src/transaction

Modified Files:
      Tag: jeremy-txn-branch
	_transaction.py 
Log Message:
Transaction.register():  Only .join the first time a resource manager is
seen.


=== Zope3/src/transaction/_transaction.py 1.1.2.13 => 1.1.2.14 ===
--- Zope3/src/transaction/_transaction.py:1.1.2.13	Fri Mar 19 17:01:00 2004
+++ Zope3/src/transaction/_transaction.py	Fri Mar 19 17:02:45 2004
@@ -130,11 +130,11 @@
             else:
                 adapter = ObjectAdapter(obj)
             self._adapters[obj._p_jar] = adapter
+            self.join(adapter)
         else:
             # XXX comment out this expensive assert later
             assert obj not in adapter.objects
             adapter.objects.append(obj)
-        self.join(adapter)
 
     def commit(self, subtransaction=False):
         if not subtransaction and self._sub and self._resources:




More information about the Zope3-Checkins mailing list