Hi Phil Thank you for your answer. Unfortunately it still doesn't work. The error I get is: Error Type: Attribute Error ErrorValue: PropertyName my code is: <dtml-in "objectValues(['myZClassObject'])"> <dtml-var "PARENTS[0].Property.Name"> </dtml-in> I controlled the spelling severeltimes and I also checked that the PARENTS[0] , has such a property. If I make a <dtml-let xx=PropertyName></dtml-let> around the dtml-in, then I can work around this problem, but that's not really a nice style ... So if you have another suggestion, you will be wellcome. But anyway thanks a lot for the hint you gave me. Stefan Mallepell ----- Original Message ----- From: "Phil Harris" <phil.harris@zope.co.uk> To: "Stefan Mallepell" <steve@syso.ch>; <zope@zope.org> Sent: Monday, April 16, 2001 1:17 AM Subject: Re: [Zope] Access same named Property of Parent Object [newbie]
If it's a property then you don't need the ():
<dtml-var "PARENTS[0].propertyName">
----- Original Message ----- From: "Stefan Mallepell" <steve@syso.ch> To: <zope@zope.org> Sent: Sunday, April 15, 2001 6:33 PM Subject: [Zope] Access same named Property of Parent Object [newbie]
Hi
Is there anybody who could give me a hint, how I access a Property-Value of a parent object, when my current object has a own property with the same name.
Is there something like <dtml-var "PARENTS[0].propertyName()">
... well the above hasen't worked ... and some other experiments ended in a crash either ... ;)
Thanks a lot in advance Stefan Mallepell
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )