[ZODB-Dev] Weird InvalidObjectReference exception :-(

Jeremy Hylton jeremy@zope.com
Fri, 4 Oct 2002 12:37:40 -0400


This patch should add the transaction metadata to the traceback info.

Jeremy

Index: Connection.py
===================================================================
RCS file: /cvs-repository/Zope/lib/python/ZODB/Connection.py,v
retrieving revision 1.72
diff -c -c -r1.72 Connection.py
*** Connection.py	14 Aug 2002 22:07:09 -0000	1.72
--- Connection.py	4 Oct 2002 16:21:27 -0000
***************
*** 378,384 ****
  
                  module=getattr(klass,'__module__','')
                  if module: klass=module, klass.__name__
!                 __traceback_info__=klass, oid, self._version
                  state=object.__getstate__()
  
              seek(0)
--- 378,386 ----
  
                  module=getattr(klass,'__module__','')
                  if module: klass=module, klass.__name__
!                 __traceback_info__ = (klass, oid, self._version,
!                                       transaction.user,
!                                       transaction.description)
                  state=object.__getstate__()
  
              seek(0)