[ZODB-Dev] Mutating class of an instance
Erik Dahl
edahl at confmon.com
Mon Jul 14 17:48:41 EDT 2008
Ok so I dug deeper into this and found that our pickles don't have the
class they just have the oid. Now comes the part where you will most
likely say that I'm lame... :)
We are using an old version of zope 2.8.8 and our ZODB objects are
Persistent (from Globals) not persistent. At the top of persistent_id
I see this:
if not isinstance(obj, (Persistent, type, WeakRef)):
# Not persistent, pickle normally
return None
Which seems to imply that the mechanism described (oid, klass) isn't
being used. Am I right in assuming that our lameness has saved us
from the optimization problem pointed out in this thread?
-EAD
On Jul 14, 2008, at 2:26 PM, Erik Dahl wrote:
> Got it I will look for a different strategy.
>
> -EAD
>
> On Jul 7, 2008, at 9:38 AM, Jim Fulton wrote:
>
>>
>> On Jul 2, 2008, at 8:07 AM, Erik Dahl wrote:
>>
>>> I have a situation where I want to mutate the class of an instance
>>
>> This is not a use case supported by ZODB.
>>
>> Jim
>>
>> --
>> Jim Fulton
>> Zope Corporation
>>
>
> _______________________________________________
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
>
> ZODB-Dev mailing list - ZODB-Dev at zope.org
> http://mail.zope.org/mailman/listinfo/zodb-dev
More information about the ZODB-Dev
mailing list