[ZODB-Dev] Pickling problem caused by Python 2.2.2 ?!
Guido van Rossum
guido@python.org
Sun, 08 Dec 2002 09:56:11 -0500
> Traceback (innermost last):
> Module ZPublisher.Publish, line 102, in publish
> Module Zope.App.startup, line 200, in commit
> Module ZODB.Transaction, line 234, in commit
> Module ZODB.Transaction, line 350, in _commit_objects
> Module ZODB.Connection, line 381, in commit
> - __traceback_info__: (('Products.CMFCollectorNG.CollectorNGIssue',
> 'CollectorNGIssue'), '\x00\x00\x00\x00\x00\x00\x18\xf6', '')
> Module copy_reg, line 57, in _reduce
> TypeError: can't pickle function objects
What does line 381 of ZODB/Connection.py look like? Mine looks like
if module: klass=module, klass.__name__
but that doesn't sound like the right line.
Where's the source for CMFCollectorNG? I expect that the key to to
the solution is there (even if the bug is not).
--Guido van Rossum (home page: http://www.python.org/~guido/)