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

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to