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 . The original problem wasn't

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" > >

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 P

Re: [Zope] Sub Class Question

2000-08-26 Thread Loren Stafford
ntTime() is not None: 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

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 > Er

[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 obje