[Zope3-checkins] CVS: Zope3/src/transaction -
_transaction.py:1.1.2.13
Tim Peters
tim.one at comcast.net
Fri Mar 19 17:01:01 EST 2004
Update of /cvs-repository/Zope3/src/transaction
In directory cvs.zope.org:/tmp/cvs-serv28402/src/transaction
Modified Files:
Tag: jeremy-txn-branch
_transaction.py
Log Message:
Transaction.register(): we weren't actually remembering any but the first
object seen per connection. It's pretty amazing how many tests passed
despite this.
=== Zope3/src/transaction/_transaction.py 1.1.2.12 => 1.1.2.13 ===
--- Zope3/src/transaction/_transaction.py:1.1.2.12 Fri Mar 19 16:55:13 2004
+++ Zope3/src/transaction/_transaction.py Fri Mar 19 17:01:00 2004
@@ -130,6 +130,10 @@
else:
adapter = ObjectAdapter(obj)
self._adapters[obj._p_jar] = 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):
More information about the Zope3-Checkins
mailing list