[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Variables and Advanced DTML
webmaster@zope.org
webmaster@zope.org
Tue, 24 Sep 2002 14:11:02 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/AdvDTML.stx#3-29
---------------
Just as the client object uses acquisition to look in a number
of places for variables, so too the request looks up variables
in a number of places. When the request looks for a variable it
consults these sources in order:
1. The CGI environment. The "Common Gateway
Interface":http://www.w3.org/CGI/, or CGI interface defines
a standard set of environment variables to be used by
dynamic web scripts. These variables are provided by Zope
in the REQUEST namespace.
2. Form data. If the current request is a form action, then
any form input data that was submitted with the request can
be found in the REQUEST object.
3. Cookies. If the client of the current request has any cookies
these can be found in the current REQUEST object.
4. Additional variables. The REQUEST namespace provides you
with lots of other useful information, such as the URL of
the current object and all of its parents.
% Anonymous User - Sep. 24, 2002 2:11 pm:
- neither client object nor request object do the lookup, the DTML interpreter does.
- the request object is *constructed* before the call to include the following sources
- Form data: see http://www.zope.org/Members/Zen/howto/FormVariableTypes
and http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html