[Zope] Finding an object in a folder
Dieter Maurer
dieter at handshake.de
Mon May 9 13:13:14 EDT 2005
Please stay on the list!
Readded...
Allen Huang wrote at 2005-5-8 11:10 -0700:
>Thanks for responding, but what is "aq_inner.aq_explicit"??
To understand "aq_inner" and "aq_explicit", you need
to understand acquisition.
You find something in the "Name lookup" section of
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
and in Jim's acquisition talk (which your probably can
locate via a search for "Jim Fulton acquisition containment before
context").
Once you understood acquisition, you know "aq_self", "aq_parent"
and implicit and explicit acquisition wrappers.
Now, you can understand "aq_inner" and "aq_explicit".
To determine "aq_inner" from an acquisition wrapper,
you follow its "aq_self" recursively, until "aq_self"
is not an acquisition wrapper.
The "aq_explicit" attribute of an acquisition wrapper
returns an explicit acquisition wrapper with the same
"aq_self" and "aq_parent".
--
Dieter
More information about the Zope
mailing list