[Zope] UnpickleableError
    jens.walte at kk.net 
    jens.walte at kk.net
       
    Mon Dec  6 08:15:42 EST 2004
    
    
  
Hi all,
i got an UnpickleableError with following source:
    def __init__(self, id, title, REQUEST):
        """ initialize... """
        req = REQUEST
        self.id = id
        self.title = title
        self.users = (req.has_key('users') and req.users or '')
        self.emails = (req.has_key('emails') and req.emails or '')
        self.formular = (req.has_key('formular') and req.formular or '')
The last line occures the error:
ErrorType: UnpickleableError
ErrorValue: Cannot pickle <type 'Python Method'> objects
Traceback (innermost last):
  File /home/xfintra/xiteflex130/lib/python/ZPublisher/Publish.py, line 150, in publish_module
  File /home/xfintra/xiteflex130/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /home/xfintra/xiteflex130/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook
    (Object: xiteflexWorkflowEngine)
  File /home/xfintra/xiteflex130/lib/python/ZPublisher/Publish.py, line 102, in publish
  File /home/xfintra/xiteflex130/lib/python/Zope/__init__.py, line 173, in commit
  File /home/xfintra/xiteflex130/lib/python/ZODB/Transaction.py, line 234, in commit
  File /home/xfintra/xiteflex130/lib/python/ZODB/Connection.py, line 346, in commit
    (Info: (('Products.xiteflexWorkflowEngine.xiteflexWorkflowAction', 'xiteflexWorkflowAction'), '\x00\x00\x00\x00\x00<\xf3\x91', ''))
UnpickleableError: (see above)
If i write..
self.formular = ''
..everything works fine.
I also tried this:
        if req.has_key('formular') and req.formular:
            self.formular = req.formular
        else:
            self.formular = ''
Same result: "UnpickleableError"
The value of req.formular is ''!
Has anybody an idea?
Normaly this should work, or not?
Thanks for your help.
Regards
woolfy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20041206/c59cef06/attachment.htm
    
    
More information about the Zope
mailing list