[Zope] Reversing acquisition?

Spicklemire, Jerry Jerry.Spicklemire@IFLYATA.COM
Thu, 20 Jul 2000 13:08:52 -0500


Ramalho wrote:

>"""
>- Containment: Search the object, then its container, then the
>container's container, and so on. Ignore objects not in this chain.
>
>- Context: Search the objects in precisely the reverse of the order in
>which they were mentioned, so "A.B.C.D" is always searched in the order
>"D", "C", "B", "A".
>
>"""
>
>But for me, A.B.C.D means that A contains B; B contains C; and C
>contains D, so I donīt see the difference from the first definition.

There's a good slide in Michel's presentation at the open source conference.

Imagine:

  --------------------
  | -----  --------- | 
  | | B |  |   C   | |
  | -----  | ----- | |
  |        | | D | | |
  |   A    | ----- | |
  |        |       | |
  |        --------- |
  --------------------

So that "A" is a folder, 
"B" is an object in "A", 
"C" is a subfolder in "A",
and "D" is an object in "C".

Then "B" is acquirable by "D", or any object in "C", but "B" is not
contained in either "C" or "D".
  
Later,
Jerry S.