[Zope] Re: Zope Inheritance with ZClasse

joe@iuveno-net.de joe@iuveno-net.de
Mon, 29 Jan 2001 02:47:06 +0100 (CET)


> 1. views are not inherited, from one base class to a sub class?
> 2. Property Sheets do not mix up the properties defined in each class
> of the class hierarchy, making able to edit them all in the same view?

Hi!

ZClasses don't quite work as expected here. It's not your fault ;-)

Basically, Properties are handled very strangely: e.g. if you add a property 
with the same name as one in the base class, you'd expect it to overload the 
other. But it would just not be created because it "already exists". The other 
way round it works: You can add a property on the base class level even if it 
exists in a subclass. (OK, that's what you'd expect).

Views are also not inherited properly. For this kind of stuff, I think ZClasses 
in their current form will not work so easily. Use Python classes instead or 
try something else, like the ZPatterns framework.

If you prefer ZClasses, Maik Roeder (maik@berg.net) is the specialist ;-)

Cheers,

Joachim