[Zope-dev] Acquisition wishlist :-)
Martijn Pieters
mj@digicool.com
Tue, 9 Jan 2001 09:24:20 +0100
On Mon, Jan 08, 2001 at 10:38:22PM +0100, Dieter Maurer wrote:
> Martijn Pieters writes:
> > On Mon, Jan 08, 2001 at 10:10:34AM +0000, Chris Withers wrote:
> > > 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.
> You have an "index_html" and its value is "None".
>
> If you use this class with another class that has a useful
> "index_html", you must care for the inheritance order
> to get the right on.
Of course, but you always have to. index_html in any class could be
anything. You could even override the inherited 'index_html = None' with
'index_html = Acquisition.Acquire'.
--
Martijn Pieters
| Software Engineer mailto:mj@digicool.com
| Digital Creations http://www.digicool.com/
| Creators of Zope http://www.zope.org/
---------------------------------------------