14 Jun
2005
14 Jun
'05
5:20 p.m.
Dylan Jay wrote at 2005-6-14 17:45 +1000:
... 356, in _commit_objects jar.commit(o, self) File "C:\Program Files\Zope-2.7.5-final\lib\python\ZODB\Connection.py", line 4 52, in commit dump(state) UnpickleableError: Cannot pickle <type 'thread.lock'> objects
I would catch the error and enter a debugger to analyse the "o" above. With "pdb" (the Python Debugger, part of Python), this could look like: try: dump(state) except: import pdb; pdb.set_trace() Zope will then enter the debugger when the error happens. You must run Zope in the foreground for this to work (otherwise, you do not have a chance to interact with "pdb"). -- Dieter