Florian Reiser wrote at 2004-3-25 09:05 +0100:
I've tried to create a thread under Zope as it is described in Case 2 of http://www.zopelabs.com/cookbook/1058719806 .
The code runs fine until the thread tries to commit the txn with try: get_transaction().commit() connection.close() except: pass
I really hope that this code is not "real" (that you do not use it in production code as listed above)! It is *VERY* bad to ignore "commit" errors without any indication...
In the call connection.close() I get the error ERROR(200) ZODB A storage error occured during object abort. This shouldn't happen. Traceback (innermost last): File C:\PROGRA~1\Zope-2~1.2\lib\python\ZODB\Transaction.py, line 401, in _commit_error File C:\PROGRA~1\Zope-2~1.2\lib\python\ZODB\Connection.py, line 658, in tpc_abort AttributeError: 'None' object has no attribute 'tpc_abort'
What have I done wrong?
Apparently, "connection" is already closed. You provide not enough information that I could tell you why... -- Dieter