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 >> zodb
zodb
Re: [ZODB-Dev] Mutating class of an instance
by Andreas Jung other posts by this author
Jul 2 2008 5:21AM messages near this date
Re: [ZODB-Dev] Mutating class of an instance | Re: [ZODB-Dev] Mutating class of an instance
--On 2. Juli 2008 08:07:56 -0400 Erik Dahl <edahl@[...].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
Thread:
Erik Dahl
Jim Fulton
Erik Dahl
Erik Dahl
Marius Gedminas
Marius Gedminas
Jim Fulton
Shane Hathaway
Andreas Jung
Jean Jordaan

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