[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Creating Basic Zope Applications
webmaster@zope.org
webmaster@zope.org
Sun, 22 Sep 2002 10:38:26 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/SimpleExamples.stx#3-2
---------------
You'll see this kind of dynamic behavior in many different
places in Zope. This technique is called *acquisition*. A folder
is said to *acquire* a object by searching for the object in its
containers.
% Anonymous User - Sep. 2, 2002 11:56 pm:
How is "aquisition" different from "inheritance" (a term commonly used in object-oriented discussions)?
% Anonymous User - Sep. 22, 2002 10:38 am:
Objects in the ZODB have a place.
Acquisition searches in the outer *context* of the object, ie the objects place.
Inheritance searches inside the object (python objects *contain* their constituent parts) and its class
derivation ancestry.