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

2000-07-12 Thread Steve Alexander
Chris Withers wrote: I was trying to use 'if o in REQUEST.PARENTS' to expand branches on the way to the currently displayed object and was running into trouble which lead me to try out the following code: `REQUEST.PARENTS[0]`+`o`+`o==REQUEST.PARENTS[0]`+`o is REQUEST.PARENTS[0]` Now,

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

2000-07-12 Thread Chris Withers
Steve Alexander wrote: Smells like an Acquisition Wrapper misunderstanding :-) You should change your name to Jim... ...or have you been bitten by this before? Do you know if objects in PARENTS are acquisition wrapped? cheers and much we're-not-worthy'ing, Chris

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

2000-07-12 Thread Chris Withers
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... :/