<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
<BODY style="FONT: 10pt Courier New; COLOR: #000000" leftMargin=5 topMargin=5>
<DIV>Hi all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>i got an UnpickleableError with following source:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; def __init__(self, id, title, 
REQUEST):<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; """ initialize... 
"""<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; req = 
REQUEST<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.id = 
id<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.title 
=&nbsp;title<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.users = 
(req.has_key('users') and req.users or 
'')<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.emails = 
(req.has_key('emails') and req.emails or '')</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.formular = 
(req.has_key('formular') and req.formular or '')<BR></DIV>
<DIV>The last line occures the error:</DIV>
<DIV>&nbsp;</DIV>
<DIV>ErrorType: UnpickleableError<BR>ErrorValue: Cannot pickle &lt;type 'Python 
Method'&gt; objects</DIV>
<DIV>&nbsp;</DIV>
<DIV>Traceback (innermost last):<BR>&nbsp; File 
/home/xfintra/xiteflex130/lib/python/ZPublisher/Publish.py, line 150, in 
publish_module<BR>&nbsp; File 
/home/xfintra/xiteflex130/lib/python/ZPublisher/Publish.py, line 114, in 
publish<BR>&nbsp; File /home/xfintra/xiteflex130/lib/python/Zope/__init__.py, 
line 159, in zpublisher_exception_hook<BR>&nbsp;&nbsp;&nbsp; (Object: 
xiteflexWorkflowEngine)<BR>&nbsp; File 
/home/xfintra/xiteflex130/lib/python/ZPublisher/Publish.py, line 102, in 
publish<BR>&nbsp; File /home/xfintra/xiteflex130/lib/python/Zope/__init__.py, 
line 173, in commit<BR>&nbsp; File 
/home/xfintra/xiteflex130/lib/python/ZODB/Transaction.py, line 234, in 
commit<BR>&nbsp; File /home/xfintra/xiteflex130/lib/python/ZODB/Connection.py, 
line 346, in commit<BR>&nbsp;&nbsp;&nbsp; (Info: 
(('Products.xiteflexWorkflowEngine.xiteflexWorkflowAction', 
'xiteflexWorkflowAction'), '\x00\x00\x00\x00\x00&amp;lt;\xf3\x91', 
''))<BR>UnpickleableError: (see above)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>If i write..</DIV>
<DIV>self.formular = ''</DIV>
<DIV>..everything works fine.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I also tried this:</DIV>
<DIV><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if req.has_key('formular') 
and 
req.formular:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
self.formular = req.formular<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
else:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
self.formular = ''</DIV>
<DIV>&nbsp;</DIV>
<DIV>Same result: "UnpickleableError"</DIV>
<DIV>&nbsp;</DIV>
<DIV>The value of req.formular is ''!</DIV>
<DIV>Has anybody an idea?</DIV>
<DIV>Normaly this should work, or not?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks for your help.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards</DIV>
<DIV>woolfy</DIV></BODY></HTML>