[Zope-dev] Calling parent class method when method is overridden in current class?

Steve Alexander steve@cat-box.net
Thu, 03 Aug 2000 09:40:42 +0100


Phil Harris wrote:
> 
> Hi all,
> 
> I'm in the process of creating a Python based product, and have a need to
> call the base classes index_html method.
> 
> My problem is that I need to call it from my classes index_html.
> 
> My class has DTMLDocument as the base class so I want to call something like
> DTMLDocument.index_html().

Perhaps DTMLDocument.index_html(self) ?

The only problem is if you need to call a base-class method from a
derived ZClass.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net