[Zope-dev] aq_parent not available in __setattr__
Brian Oliver
beef005@hotmail.com
Wed, 06 Feb 2002 11:19:17 +1000
Yep... Certainly isn't.
Aquisition isn't available for either __getattr__ or __setattr__.
So the fundamental question remains...
How does one receive a callback/create a hook that is called when an
attribute is changed, especially changed via the default property editor for
Zope objects (such that aquisition still works)?
If this type of feature isn't already planned for Zope 3 (I'll take a look
and get active), I'm sure it should be. My suggestion would be to provide
Java Beans like get and set methods for all properties, so custom handlers
could easily be created.
-- Brian
>From: Dieter Maurer <dieter@handshake.de>
>To: "Brian Oliver" <beef005@hotmail.com>
>CC: zope-dev@zope.org
>Subject: Re: [Zope-dev] aq_parent not available in __setattr__
>Date: Tue, 5 Feb 2002 23:08:13 +0100
>
>Brian Oliver writes:
> > ...
>Share reported for "__getattr__" (--> mailing list archives)
>that the self passed in is not acquisition wrapped.
>Maybe, this is also the case for its companion "__setattr__"...
>
>
>Dieter
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com