[Zope-dev] Pickle confuses ZClass Instance for Python Method?
Loren Stafford
lstaffor@dynalogic.com
Thu, 10 Feb 2000 13:26:30 -0800
I just created a ZClass "TimedEventClass" Now I'm trying to add an instance
of that class programmatically, and this error pops up. It makes no sense to
me. I have no Python Methods in my code. Can anyone suggest where to look
next?
<!--
Error type: cPickle.PicklingError
Error value: Cannot pickle <type 'Python Method'> objects.
-->
Traceback (innermost last):
File C:\Zope213\lib\python\ZPublisher\Publish.py, line 214, in
publish_module
File C:\Zope213\lib\python\ZPublisher\Publish.py, line 179, in publish
File C:\Zope213\lib\python\Zope\__init__.py, line 202, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
File C:\Zope213\lib\python\ZPublisher\Publish.py, line 169, in publish
File C:\Zope213\lib\python\ZODB\Transaction.py, line 237, in commit
File C:\Zope213\lib\python\ZODB\Connection.py, line 325, in commit
(Info: (('*a/6lgOdxYOKuB7ddzBaPRQ==', 'TimedEventClass'),
'\000\000\000\000\000\000\002\374', ''))
cPickle.PicklingError: (see above)