I'm pretty sure I've tried that but I'll try it again and see what happens,
hang on I'll be right back.

Right I'm back, I thought I'd tried it and I had, I get this error:

Error Type: TypeError
Error Value: call of non-function (type None)

Traceback (innermost last):
  File D:\ZOPE_2~1.2_D\lib\python\ZPublisher\, line 222, in
  File D:\ZOPE_2~1.2_D\lib\python\ZPublisher\, line 187, in
  File D:\ZOPE_2~1.2_D\lib\python\Zope\, line 221, in
    (Object: 1_introd.xml)
  File D:\ZOPE_2~1.2_D\lib\python\ZPublisher\, line 171, in
  File D:\ZOPE_2~1.2_D\lib\python\ZPublisher\, line 160, in mapply
    (Object: index_html)
  File D:\ZOPE_2~1.2_D\lib\python\ZPublisher\, line 112, in
    (Object: index_html)
  File D:\zope_2.2_dev\lib\python\Products\xmlRenderer\, line
58, in index_html
    (Object: 1_introd.xml)
TypeError: (see above)

which seems to be telling me that DTMLDocument.index_html is None, weird eh!

TFT (thanks for trying)


----- Original Message -----
From: "Steve Alexander" <[EMAIL PROTECTED]>
To: "Phil Harris" <[EMAIL PROTECTED]>
Cc: "Zope-Dev@Zope. Org" <[EMAIL PROTECTED]>
Sent: Thursday, August 03, 2000 9:40 AM
Subject: Re: [Zope-dev] Calling parent class method when method is
overridden in current class?

> Phil Harris wrote:
> >
> > Hi all,
> >
> > I'm in the process of creating a Python based product, and have a need
> > 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
> > 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

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to