[ZODB-Dev] Mutating class of an instance
Andreas Jung
lists at zopyx.com
Wed Jul 2 08:20:39 EDT 2008
--On 2. Juli 2008 08:07:56 -0400 Erik Dahl <edahl at confmon.com> wrote:
> I have a situation where I want to mutate the class of an instance like
> this:
>
> inst.__class__ = NewClass
>
> I'm in zeo land. When I do this in one client things work fine. But of
> course the other clients who have already loaded the instance still hold
> the old class. Restarting them gets the new class so it did get stored
> properly in the pickle (which I would expect). Any chance I can get zeo
> to tell the other clients about the new class?
Restart?
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20080702/587ea7d9/attachment.bin
More information about the ZODB-Dev
mailing list