2 Jan
2003
2 Jan
'03
7:51 p.m.
Catonano wrote at 2002-12-30 19:35 +0100:
... I get something back froma ZCatalog ( results = myZCatalog({'myAttr': myValue}) )
Then I try to put results in session, like this:
...Request.Session['myResults'] = results
What I get back is an UnpickelableError message.
It seems that lists are not pickelable.
How can I store my results in a pickelable form? Can I? You cannot put the result of a catalog search in a session.
But you can store the *list* of "record id"s and later use a catalog method (something like "get_object") to get at the real object. I answered such a question recently in the mailing list. Please search the archive, for details. Dieter