Re: [Zope] Sub Class Question

2000-08-28 Thread R. David Murray
On Sun, 27 Aug 2000, Loren Stafford wrote: Here's what MJ told me about that case. I'm not sure it applies to your case. Did you try it? Did it work? Thanks for the info. It was the Extension class piece I was missing. I tested it on a regular class, of course grin. The original problem

Re: [Zope] Sub Class Question

2000-08-27 Thread R. David Murray
On Sat, 26 Aug 2000, Loren Stafford wrote: def index_object(self): if self.nextEventTime() is not None: CatalogAware.index_object.im_func(self) # see Python Reference Manual "The standard type hierarchy" # for the built-in type im_func I realize this is a

Re: [Zope] Sub Class Question

2000-08-27 Thread Loren Stafford
From: "R. David Murray" [EMAIL PROTECTED] On Sat, 26 Aug 2000, Loren Stafford wrote: def index_object(self): if self.nextEventTime() is not None: CatalogAware.index_object.im_func(self) # see Python Reference Manual "The standard type hierarchy" # for

Re: [Zope] Sub Class Question

2000-08-26 Thread Loren Stafford
: CatalogAware.index_object.im_func(self) # see Python Reference Manual "The standard type hierarchy" # for the built-in type im_func -- HTH -- Loren - Original Message - From: "Daniel Rusch" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: August 25, 2000 02:51 PM Subject: [Zope

[Zope] Sub Class Question

2000-08-25 Thread Daniel Rusch
I've created a BasicMethod which is derived from the DTMLMethod. everything works great until I try to have the sub class's (BasicMethod) __call__ method call the super class's (DTMLMethod) __call__ method. class BasicMethod(DTMLMethod): """BasicMethod objects are DocumentTemplate.HTML

Re: [Zope] Sub Class Question

2000-08-25 Thread R. David Murray
On Fri, 25 Aug 2000, Daniel Rusch wrote: def __call__(self, client=None, REQUEST={}, RESPONSE=None, **kw): print 'Sub Class __call__' DTMLMethod.__call__(self, client, REQUEST, RESPONSE, kw) [...] when I view the BasicMethod in Zope, I get: Error Type: TypeError Error