On Mon, Jan 08, 2001 at 10:10:34AM +0000, Chris Withers wrote:
> Dieter Maurer wrote:
> > 
> > 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).
> 
> I'm pretty sure inheritence takes precedence over Acquisition.
> 
> You wouldn't need to have index_html = None if it is inherited, since
> the inherited idnex_html would be used before one is acquired, surely?

Yup. If you don't want to have any index_html *at all*, just declare it
index_html = None. DTML Methods and HiperDom templates do this as well,
for example.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
---------------------------------------------

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to