[Zope-CMF] How to get Type in manage_afterAdd?

Jon Edwards jon@pcgs.freeserve.co.uk
Fri, 1 Feb 2002 22:41:41 -0000


>  >   if not hasattr(self.aq_explicit, 'index.htm'):
> If fact, you probably even need "aq_base":
>
>   If "self" is acquisition wrapped, then it has two components
>   "s" and "p" ("self" and "parent"). "aq_explicit" is enough,
>   when "s" is not itself acquisition wrapped. If it is, you
>   may still see acquired attributes. "aq_base" unwraps at long
>   as is necessary to get at the unwrapped object.

Thanks Dieter,

I did some reading and I understand now that aq_base returns just the
object, with no acquisition. But I'm a little confused about aq_explicit :-)

Could anyone give an example where aq_explicit might not do what I want in
this context (I'm checking to see if a folder already has an 'index.htm'
document before adding it)?

Cheers, Jon