-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Maciej Wisniowski wrote: >> According to the zope book it should be possible to store dicts in session. >> When I try to assign a dictionary to a ordinary zope 2 session, with >> lists there is no problem. why?: > (...) >> base.__name__ TypeError: can't pickle instancemethod objects ) > > Seems that you're assigning unpickable objects (instancemethod) to the > session. > Check what is (what types of objects) in your requestlist variable. > Try to assign just {'key1':'val1'} to the session and see if this works. > > Yur example works for me (in Script (Python) on Zope 2.8.8). Is this > exactly the code you're using?
Another thing: if your form includes file upload fields, you can't stash the file handle (created by 'cgi.FieldStorage') in the ZODB (and therefore, in a ZODB-backed session). Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFpR1i+gerLs4ltQ4RAuSzAJ4ta6vywXH8LGDoZ0L8NQWy9adsJACgv6DW B7N7OlaY+quhT9bjdoyLqR8= =JCwQ -----END PGP SIGNATURE----- _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )