<!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 style="FONT: 10pt Courier New; COLOR: #000000">Hmm, req.formular wasn't
really a string ^^</DIV>
<DIV style="FONT: 10pt Courier New; COLOR: #000000">Now, it works.</DIV>
<DIV style="FONT: 10pt Courier New; COLOR: #000000"> </DIV>
<DIV style="FONT: 10pt Courier New; COLOR: #000000">thanks although</DIV>
<DIV style="FONT: 10pt Courier New; COLOR: #000000"> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<TABLE id=tobit_repfor
style="BORDER-RIGHT: #e0e0e0 1px solid; BORDER-TOP: #e0e0e0 1px solid; FONT: 10pt Arial; BORDER-LEFT: #e0e0e0 1px solid; COLOR: black; BORDER-BOTTOM: 0px"
cellSpacing=0 cols=3 cellPadding=0 width="99%" border=0>
<TBODY>
<TR borderColor=#dfdfdf borderColorLight=#dfdfdf bgColor=#dfdfdf>
<TD
style="PADDING-LEFT: 4px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; BORDER-BOTTOM: #ffffff 1px solid"
width=140 colSpan=2 height=22>
<DIV style="FONT: bold 9pt Arial">Original
Message </DIV></TD>
<TD style="BORDER-BOTTOM: #ffffff 1px solid" align=right>
<DIV style="FONT: 8pt Arial">
<DIV style="FONT: 8pt Arial"><STRONG><FONT
color=#808080> processed by David
InfoCenter</FONT></STRONG> </DIV></DIV></TD></TR></TBODY></TABLE>
<TABLE id=tobit_repfor2
style="BORDER-RIGHT: #e0e0e0 1px solid; BORDER-TOP: 0px; FONT: 8pt Tahoma; BORDER-LEFT: #e0e0e0 1px solid; COLOR: black; BORDER-BOTTOM: #e0e0e0 1px solid"
cellSpacing=0 cols=2 cellPadding=0 width="99%" border=0>
<TBODY>
<TR style="PADDING-BOTTOM: 2px">
<TD style="PADDING-LEFT: 6px; BORDER-BOTTOM: #ffffff 1px solid" width=68
bgColor=#efefef height=18>
<DIV style="FONT: 8pt Tahoma">Subject: </DIV></TD>
<TD style="PADDING-LEFT: 4px; BORDER-BOTTOM: #efefef 1px solid"
bgColor=#ffffff>
<DIV style="FONT: 8pt Tahoma">[Zope] UnpickleableError (06-Dez-2004
14:15)</DIV></TD></TR>
<TR style="PADDING-BOTTOM: 2px">
<TD style="PADDING-LEFT: 6px; BORDER-BOTTOM: #ffffff 1px solid" width=68
bgColor=#efefef height=18>
<DIV style="FONT: 8pt Tahoma">From: </DIV></TD>
<TD style="PADDING-LEFT: 4px; BORDER-BOTTOM: #efefef 1px solid"
bgColor=#ffffff>
<DIV style="FONT: 8pt Tahoma"><A
href="mailto:jens.walte@kk.net">jens.walte@kk.net</A></DIV></TD></TR>
<TR style="PADDING-BOTTOM: 0px">
<TD style="PADDING-LEFT: 6px" width=68 bgColor=#efefef height=17>
<DIV
style="FONT: 8pt Tahoma">To: </DIV></TD>
<TD style="PADDING-LEFT: 4px" bgColor=#ffffff>
<DIV style="FONT: 8pt Tahoma"><A
href="mailto:jw@obelix.bb.kk.net">jw@obelix.bb.kk.net</A></DIV></TD></TR></TBODY></TABLE>
<DIV> </DIV>
<DIV>Hi all,</DIV>
<DIV> </DIV>
<DIV>i got an UnpickleableError with following source:</DIV>
<DIV> </DIV>
<DIV> def __init__(self, id, title,
REQUEST):<BR> """ initialize...
"""<BR> req =
REQUEST<BR> self.id =
id<BR> self.title
= title<BR> self.users =
(req.has_key('users') and req.users or
'')<BR> self.emails =
(req.has_key('emails') and req.emails or '')</DIV>
<DIV> self.formular =
(req.has_key('formular') and req.formular or '')<BR></DIV>
<DIV>The last line occures the error:</DIV>
<DIV> </DIV>
<DIV>ErrorType: UnpickleableError<BR>ErrorValue: Cannot pickle <type
'Python Method'> objects</DIV>
<DIV> </DIV>
<DIV>Traceback (innermost last):<BR> File
/home/xfintra/xiteflex130/lib/python/ZPublisher/Publish.py, line 150, in
publish_module<BR> File
/home/xfintra/xiteflex130/lib/python/ZPublisher/Publish.py, line 114, in
publish<BR> File /home/xfintra/xiteflex130/lib/python/Zope/__init__.py,
line 159, in zpublisher_exception_hook<BR> (Object:
xiteflexWorkflowEngine)<BR> File
/home/xfintra/xiteflex130/lib/python/ZPublisher/Publish.py, line 102, in
publish<BR> File /home/xfintra/xiteflex130/lib/python/Zope/__init__.py,
line 173, in commit<BR> File
/home/xfintra/xiteflex130/lib/python/ZODB/Transaction.py, line 234, in
commit<BR> File /home/xfintra/xiteflex130/lib/python/ZODB/Connection.py,
line 346, in commit<BR> (Info:
(('Products.xiteflexWorkflowEngine.xiteflexWorkflowAction',
'xiteflexWorkflowAction'), '\x00\x00\x00\x00\x00&lt;\xf3\x91',
''))<BR>UnpickleableError: (see above)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>If i write..</DIV>
<DIV>self.formular = ''</DIV>
<DIV>..everything works fine.</DIV>
<DIV> </DIV>
<DIV>I also tried this:</DIV>
<DIV><BR> if req.has_key('formular')
and
req.formular:<BR>
self.formular = req.formular<BR>
else:<BR>
self.formular = ''</DIV>
<DIV> </DIV>
<DIV>Same result: "UnpickleableError"</DIV>
<DIV> </DIV>
<DIV>The value of req.formular is ''!</DIV>
<DIV>Has anybody an idea?</DIV>
<DIV>Normaly this should work, or not?</DIV>
<DIV> </DIV>
<DIV>Thanks for your help.</DIV>
<DIV> </DIV>
<DIV>Regards</DIV>
<DIV>woolfy</DIV></BLOCKQUOTE></BODY></HTML>