[ZODB-Dev] Pickling problem caused by Python 2.2.2 ?!

Andreas Jung andreas@andreas-jung.com
Sun, 08 Dec 2002 16:01:04 +0100


Line 381 contains dump(state).
The CMFCollectorNG sources are here:
http://sourceforge.net/project/showfiles.php?group_id=68417

Andreas



--On Sonntag, 8. Dezember 2002 09:56 -0500 Guido van Rossum 
<guido@python.org> wrote:

>> 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/)




    ---------------------------------------------------------------------
   -    Andreas Jung                     http://www.andreas-jung.com   -
  -   EMail: andreas at andreas-jung.com                              -
   -            "Life is too short to (re)write parsers"               -
    ---------------------------------------------------------------------