[Zope-dev] aq_inContextOf/can anyone explain this zmonitor log?

Bob Pepin bpe@iee.lu
Tue, 22 Aug 2000 13:27:59 +0200


On Mon, Aug 21, 2000 at 04:21:33PM +0100, Toby Dickenson wrote:
> On Mon, 21 Aug 2000 16:03:38 +0200, Bob Pepin <bpe@iee.lu> wrote:
> 
> Yeah, this is a good one. Theres some debate in the Collector about
> whether this is actually a bug or not.
> 
> In short, aq_inContextOf checks for nested aquisition contexts. It
> does *not* check for nested objects.  It will return zero if you pass
> it parallel acquisition contexts, even if the objects are indeed
> nested.
> Here is the full story, and a patch to get it to work the other way.
> 
> http://classic.zope.org:8080/Collector/1066/view
> 
> (This patch used to work, but ive not used it since it was submitted)

hmm... shouldn't either User.BasicUser.allowed() or aq_inContextOf be modified
then, since the intent in allowed() doesn't seem to be to check for nested
contexts?