[Zope] How to access the attributes of a base class?

Lars Heber Lars.Heber@t-systems.com
Fri, 05 Apr 2002 18:06:39 +0200


hans wrote:

> Lars Heber wrote:
>
> > Hello,
> > I have a ZClass Folder and a ZClass SpecialFolder, which has Folder as
> > base class.
> > Within an instance of SpecialFolder, I need access to a property
> > declared in the base class Folder.
> > Alternatively, I could create a property with the same name like that
> > one from the base class, but this isn't allowed! BTW, it would be nice
> > if this was possible in order to hide the original value - iirc this is
> > usual in object oriented contexts.
> >
> > Does anybody have a suggestion how to do it via DTML?
>
> aq_parent ?

I still tried:
<dtml-var
"specialFolderInstance.aq_parent.propertysheets.myPropertysheet.myPropertyInTheBaseClass">

and many other possibilities, without success.

Anyway, thanks!

Anybody other solutions?

Thanks.
--
Lars Heber, mailto:Lars.Heber@t-systems.com

T-Systems, debis Systemhaus GEI GmbH, Geschaeftsstelle Sachsen