<!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">&nbsp;</DIV>
<DIV style="FONT: 10pt Courier New; COLOR: #000000">thanks although</DIV>
<DIV style="FONT: 10pt Courier New; COLOR: #000000">&nbsp;</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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>&nbsp;&nbsp;&nbsp;processed by David 
        InfoCenter</FONT></STRONG>&nbsp;</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:&nbsp;</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:&nbsp;&nbsp;&nbsp;&nbsp;</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:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>&nbsp;</DIV>
  <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></BLOCKQUOTE></BODY></HTML>