RE: [Zope-dev] Multiple inheritance woes
-----Original Message----- From: zope-dev-admin@zope.org [mailto:zope-dev-admin@zope.org]On Behalf Of Martijn Pieters Sent: Friday, September 10, 1999 10:24 AM To: Phillip J. Eby; Zope-dev@zope.org Subject: Re: [Zope-dev] Multiple inheritance woes
At 20:05 09/09/99 , Phillip J. Eby wrote:
At 02:54 PM 9/9/99 +0200, Martijn Pieters wrote:
At 14:33 09/09/99 , Rik Hoekstra wrote:
I define a baseclass derived from CatalogAware and DTMLMethod:
class Base(CatalogAware, DTMLMethod): def index_object(self): # check a few things I want to know about # before indexing, maybe even not allowing # the indexing CatalogAware.index_object(self)
A shot in the dark: Shouldn't this be CatalogAware().index_object(self)? At least this explicitly instanciates CatalogAware and stops raising TypeErrors. But I'm not sure this completely solves your problem
Rik
Sorry, you missed =). In normal python this would work, but as Philip pointed out, when using Acquisition and ExtensionClasses, things are different, and throw the Python interpreter off.
Actually, no, it wouldn't, because then you'd get a different TypeError, this one for having passed too many arguments to the index_object() method. And besides, you don't want to call another object's index_object() method, you want to call an overridden version of *your* index_object() method.
Heh, why does noone ever understand what I am saying =). I ment that _my_ code would normally work in Python. I wasn't commenting on Rik's. There is a reasonable change I might meet him one day. After all, he's only about an hours drive away. =)
You bet :-\ (But I've learnt my lesson - I'll never post so quick again) Rik
Rik Hoekstra wrote:
Martijn Pieters wrote:
There is a reasonable change I might meet him one day. After all, he's only about an hours drive away. =)
You bet :-\ (But I've learnt my lesson - I'll never post so quick again)
What's worse, you guys might even meet *me* one day. :) Regards, Martijn
Just a quickie note, I see more Europeans active in the mailing list than other continents. And the replies is mostly during the working hours. Get back to work !!!(says the boss :0) dody, italy Martijn Faassen wrote:
Rik Hoekstra wrote:
Martijn Pieters wrote:
There is a reasonable change I might meet him one day. After all, he's only about an hours drive away. =)
You bet :-\ (But I've learnt my lesson - I'll never post so quick again)
What's worse, you guys might even meet *me* one day. :)
Regards,
Martijn
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://www.zope.org/mailman/listinfo/zope-dev
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For non-developer, user-level issues, zope@zope.org, http://www.zope.org/mailman/listinfo/zope )
At 06:45 13/09/99 , Dody Gunawinata wrote:
Just a quickie note, I see more Europeans active in the mailing list than other continents. And the replies is mostly during the working hours. Get back to work !!!(says the boss :0)
This is work. Lucky me =) -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
Date sent: Mon, 13 Sep 1999 14:53:58 +0200 To: Dody Gunawinata <dody_g@eles.com>, Martijn Faassen <m.faassen@vet.uu.nl> From: Martijn Pieters <mj@antraciet.nl> Subject: Re: [Zope-dev] Multiple inheritance woes Copies to: zope-dev@zope.org
At 06:45 13/09/99 , Dody Gunawinata wrote:
Just a quickie note, I see more Europeans active in the mailing list than other continents. And the replies is mostly during the working hours. Get back to work !!!(says the boss :0)
This is work. Lucky me =)
But then again, this is not (it's 9 pm here now). Lucky boss.... Rik
participants (5)
-
Dody Gunawinata -
Martijn Faassen -
Martijn Pieters -
Rik Hoekstra -
Rik Hoekstra