[Zope-CMF] index_html acquisition
Thu, 15 May 2003 08:26:48 +1000
Chris Withers wrote:
> Troy Farrell wrote:
>> I suppose instead you could add this line to your __init__():
> You could write that slightly more neatly as:
> self.index_html = Acquisition.Acquired
> But why wouldn't you want to do it in the class declaration?
The class I've witten is used as a mix-in in a subclass of PloneSite.
The PloneSite generator creates an index_html object in the plone_root,
and hence setting self.index_html = Acquisition.Acquired throws an
error. At least I *think* that's what's going on. :)