[Zope] Can't pickle objects in acquisition wrappers

Keith Alperin kalperin at mac.com
Sun Dec 18 22:53:25 EST 2005


Greetings Zopistas!

I'm returning to Zope after about a year away and am working on a  
project that i have pieced together over about 4 years.  I recently  
deployed this project (a family history web site) under a zope 2.7.x  
install (it used to run on a 2.4.x install) and now I can't seem to  
update any of my objects.  when i try to save them, I get a  
TypeError: Can't pickle objects in acquisition wrappers.  I was never  
more than a dabbler, so I can't really claim to fully grok what  
acquisition wrappers are, other than being a construct that allows me  
to refer to an object in a request without knowing exactly where it  
is (ie is it a request parameter, a member of my object etc).   
Googling for this message yields very little information and grepping  
the source code yields one nondescript (at least to me) line in  
_Acquisition.c .  Does anyone understand what this error means?  Does  
anyone have any ideas on how to tell what "acquisition wrapper" i'm  
saving?  Is there a way for me to workaround this?

Many thanks,
Keith R. Alperin



More information about the Zope mailing list