ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-List
zope-List
Re: [Zope] How do I deal with UNpickelableError ?
by Dieter Maurer other posts by this author
Jan 2 2003 7:51PM messages near this date
[PMX:#] [Zope] How do I deal with UNpickelableError ? | Re: [Zope] How do I deal with UNpickelableError ?
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

_______________________________________________
Zope maillist  -  Zope@[...].org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )
Thread:
Catonano
Dieter Maurer
Catonano

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved