[Zope-dev] Acquisition wishlist :-)
Dieter Maurer
dieter@handshake.de
Wed, 5 Jan 2000 23:07:30 +0100 (CET)
Chris Withers writes:
> And I suppose the other part of my wishlist:
>
> class MyClass(Acquisition.Implicit):
> # your_attribute will be acquied
>
> # index_html won't
> index_html = None
No, that is not enough!
As a side effect to turn off acquisition, you defined
the attribute. This will not play well with inheritance:
You will not only prevent acquisition of "index_html" but
also prevent inheritance of it (which may be really necessary
in some contexts).
Dieter