[PEAK] Re: gf.when() doesn't honour Interfaces on instances (protocols.adviseObject)

Ulrich Eck ueck at net-labs.de
Thu Dec 2 11:32:28 EST 2004

Hi Phillip,

Am Donnerstag, den 02.12.2004, 10:52 -0500 schrieb Phillip J. Eby:
> Second, you can't use adviseObject() to add and remove 
> interfaces like that, because PyProtocols wants to have a convergent 
> interface state, and therefore never retracts interfaces in its
> default 
> implementation.  If you need an object to change its interfaces on the
> fly 
> you need to implement a custom __conform__ method and handle it
> internally 
> to the object.

this originates from the idea to be able to use *one* implementation for
peak- and z3-component based systems (z3 with their interfaces-impl).

however i'll go ahead with your suggestions.


Ulrich Eck <ueck at net-labs.de>
net-labs Systemhaus GmbH

More information about the PEAK mailing list