[Zope] silly problem that's got me stumped

Dieter Maurer dieter@handshake.de
Thu, 22 Nov 2001 19:17:33 +0100


Lars Heber writes:
 > 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>
In fact, it is "_.hasattr(....)".

And the tip did not come from me...
>From me came, that it is not safe (in some cases, that you may
not run into)...


Dieter