[Zope-dev] unpickleable error

auto44082@hushmail.com auto44082@hushmail.com
Wed, 8 Mar 2000 07:15:25 -0800 (PST)


>Ive run into this several times, and you've prompted me to look into
>why.
>
>I think manage_changeProperties and manage_editProperties should be
>using self._updateProperty rather than self._setPropValue.
>
>self._updateProperty performs type checking on the property values. 
>In
>this case you property would probably get the value
><file object at 0x12345678>
>or something similar, which gives a good hint about what you did
>wrong.

Interesting... I finally fixed my problem without understanding completely 
why. I ended up deleting the property in question ("upload_file") with manage_delProperties,
 and re-adding it with manage_addProperties. This worked fine and I was 
on my way.

Unfortunately I don't understand enough about Zope and the underlying Python 
to see immedately what I did wrong originally. It seems to me that manage_changeProperties 
should work too. Am I passing a reference to the file object instead of 
the file object itself? (Forgive my dullness, but I'm not a python expert 
yet :)

-Andy


IMPORTANT NOTICE:  If you are not using HushMail, this message could have been read easily by the many people who have access to your open personal email messages.
Get your FREE, totally secure email address at http://www.hushmail.com.