Pierre-Julien Grizel writes:
> Dieter Maurer wrote:
> > ....
> > This implies, that the idiom
> >
> > <dtml-if "_.hasattr(o.aq_explicit,XXXX)">
> >
> > cannot be used safely to test, whether "o" has attribute
> > XXXX itself (rather than acquired it).
> > We probably should have a standard function for this kind
> > of test.
>
>
>
> Mhhh .... Something like "<dtml-if "_.hasattr(o.aq_base,XXXX)">" ?
"aq_base" is not considered safe and unavailable in DTML.
But you are right, that would be the implementation of the
function, I call for.
Dieter
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
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 )