[Zope] UNEXPECTED: Acquisition.Explicit may acquire implicitly
Dieter Maurer
dieter@handshake.de
Wed, 3 Jan 2001 09:27:56 +0100 (CET)
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