[Zope] Re: ZODB A storage error occured during transaction abort.

Dieter Maurer dieter at handshake.de
Wed Jan 14 16:01:45 EST 2004


Dennis Allison wrote at 2004-1-14 08:11 -0800:
> ...
>Do you have any suggestions for localizing the problem?
>
>2004-01-13T17:15:21 ERROR(200) ZODB A storage error occured during
>transaction abort.  This shouldn't happen.
>Traceback (innermost last):
>  File /home/zopesys/lib/python/ZODB/Transaction.py, line 262, in commit
>  File /home/zopesys/lib/python/ZODB/Transaction.py, line 393, in
>_commit_error
>AttributeError: Surrogate instance has no attribute '_p_oid'

This is a bug in Zope.

  I remember that Toby once suggested that it is wrong for
  "Transaction" to expect all objects to have an "_p_oid".

  I am sure, he was correct.

File a bug report to "http://www.zope.org/Collectors/Zope".

You can fix this by substituting "getattr(o,'_p_oid','<not persistent>')"
for "o._p_oid" in "_commit_error".

-- 
Dieter



More information about the Zope mailing list