[Zope-dev] Re: Another mystery for you ;-)

Chris Withers chrisw@nipltd.com
Wed, 12 Jul 2000 13:20:25 +0100


Steve Alexander wrote:
> > Do you know if objects in PARENTS are acquisition wrapped?
> 
> I'm pretty sure that they are.

They are indeed, in fact, pretty much everything is :(

The only way to check if o is in PARENTS appears to be:

if o.aq_base in map (lambda o : o.aq_base,PARENTS):

..nice... :/

Two questions:

1. Is there a better way of doing the above?
2. Is there any case where a Zope object isn't going to have a .aq_base
   attribute?

cheers,

Chris