3 Jan
2001
3 Jan
'01
8:27 a.m.
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