[Zope] silly problem that's got me stumped
Chris Ryland
cpr@emsoftware.com
Thu, 22 Nov 2001 08:30:42 -0500
Thanks, but it's even easier than that--it appears that
<dtml-if expr="content.hasProperty('includetestimonial')"> ... </dtml-if>
is all I need.
Thanks again.
--
Cheers!
Chris Ryland
Em Software, Inc.
www.emsoftware.com
----- Original Message -----
From: "Lars Heber" <Lars.Heber@t-systems.de>
To: <cpr@emsoftware.com>
Cc: <zope@zope.org>
Sent: Thursday, November 22, 2001 3:27 AM
Subject: [Zope] silly problem that's got me stumped
> >Chris Ryland writes:
> > > ....
> > > Now, the problem is, that if I put a certain property on the content
> file in
> > > this folder, it seems to be inherited by all subfolders' content
> files.
> > >
> > > Is that true?
> >No.
>
> >However, acquisition may trick you to find the "content" object in a
> >much higher folder than you expect. Read "Containment before Context"
> >in (e.g.)
> [...]
>
> I just saw the document referred by Dieter for the first time. A little
> difficult to understand for a short question. So here is a short answer,
> how I did it - this tip came originally from Dieter as well, if I
> remember right:
>
> <dtml-if "myDoc.hasattr(aq_explicit,'attribute_name')">
> myDoc itself has an attribute 'attribute_name' - it is not acquired.
> </dtml-if>
>
> Hope it helped.
> --
> Lars Heber, mailto:Lars.Heber@t-systems.de
>
> T-Systems, debis Systemhaus GEI GmbH, Geschaeftsstelle Sachsen
>