[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Dynamic Content with DTML
webmaster@zope.org
webmaster@zope.org
Sat, 21 Sep 2002 19:20:13 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/DTML.stx#2-32
---------------
This is basically what you might expect. Zope inserts a header, a
footer, and a title into the web page. DTML gets the values for these
variables from a number of different places. First, the *var* tag tries
to find a variable in the current object. Then it looks in the current
object's containers. Then it looks in the web request (forms and
cookies). If Zope cannot find a variable then it raises an exception,
and it stops executing the DTML.
% Anonymous User - June 6, 2002 9:24 am:
"current object's containers" what are containers? are you saying the current file's parent folder? or the
sibling folders?
% Anonymous User - June 6, 2002 9:31 am:
the current object's folder, then in turn *its* folder, then its folder, etc.
% Anonymous User - Aug. 20, 2002 11:05 am:
The preceding search order is so important I think it should have its own heading.
SL
% Anonymous User - Sep. 12, 2002 5:15 pm:
i agree
% Anonymous User - Sep. 21, 2002 7:20 pm:
Well, this is still shallow intro *examples* invoking a a lot of magic and wonders.
Deeper discussions of namespace and the *rules* of name resolution see
http://www.zope.org/Documentation/Books/ZopeBook/current/AppendixA.stx
http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html