10 Jan
2007
10 Jan
'07
4:55 p.m.
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? -- Maciej Wisniowski