On Friday 07 June 2002 06:44 pm, Julien Jalon wrote:
Beautiful -- thanks a ton ~~
nic
>
> import ExtensionClass
> import Acquisition
>
> class Outer(ExtensionClass.Base):
>
> thing = ('help', 'donthelp')
>
> class Inner_base(Acquisition.Implicit):
> # here the real declaration of the
Nicholas Henke <[EMAIL PROTECTED]> wrote:
>Given the following code:
> I can see why access to self.thing fails in Inner::__setattr__, but the
>question is how do I do that -- can I not use __setattr__ and have to use a
>setAttr that is accessed via O.I.setAttr('help','me rhonda') ?
>
>Nic
>
>i
The only way I know is to put a wrapped object in a ._v_attribute, which
means a volatile attribute.
You can put, for instance, a wrapped self in, for instance
self._v_alterEgo, this way you can do wrapped transversals thru it.
How do you get a wrapped self to put there is an exercise left to th
Why rely on __setattr__? Why not just create a regular setter function
that can use acquisition instead of being clever?
-Casey
On Wed, 2002-06-05 at 15:24, Erik A. Dahl wrote:
> Yep. This is a problem for me I'm trying to find something through
> acquisition in my __setattr__. Self is total
Yep. This is a problem for me I'm trying to find something through
acquisition in my __setattr__. Self is totally unwrapped. Can anyone
think of a creative solution? aq_acquire doesn't help because self is
not a wrapped object. :( Can't pass in the object I want because the
whole point o
Nicholas Henke (by way of Nicholas Henke ) wrote:
> Given the following code:
> I can see why access to self.thing fails in Inner::__setattr__, but the
> question is how do I do that -- can I not use __setattr__ and have to use a
> setAttr that is accessed via O.I.setAttr('help','me rhonda') ?
Given the following code:
I can see why access to self.thing fails in Inner::__setattr__, but the
question is how do I do that -- can I not use __setattr__ and have to use a
setAttr that is accessed via O.I.setAttr('help','me rhonda') ?
Nic
import ExtensionClass, Acquisition
class Outer(Exte
ok -- this has to be a stupid question that I should have RTFM somewhere --
but I couldn't find the FM for the life of me. Given the following code, I
can see why access to self.thing fails in Inner::__setattr__, but the
question is how do I do that -- can I not use __setattr__ and have to use