[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Variables and Advanced DTML
Tue, 24 Sep 2002 12:37:37 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/AdvDTML.stx#2-10
When Zope looks for names in the DTML namespace stack it first looks at
the very top most object in the stack. If the name can't be found
there, then the next item down is looked in. Zope will work its way
down the stack, checking each object in turn until it finds the name
that it is looking for.
% Anonymous User - July 12, 2002 12:11 am:
% Anonymous User - Aug. 8, 2002 3:03 pm:
Neither "very top most" (sic) or "topmost" say anything more than a simple "top"
% Anonymous User - Sep. 24, 2002 12:37 pm:
Look up *in* an object: Explain:
Python objects have a namespace for their components ("__dict__" ?); also the name of the class the object
was instantiated from; the classes namespace (classes are objects, too) contains the names of its parent
All these objects nested namespaces are looked up, and in that order!