[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Advanced Page Templates

webmaster@zope.org webmaster@zope.org
Thu, 26 Sep 2002 15:08:27 -0400


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/AdvZPT.stx#4-161

---------------

        When Zope publishes a DTML object through the web, it
        passes the context of the object as the client, and the
        REQUEST as the mapping.  When one DTML object calls another,
        it passes its own namespace as the mapping, and no client.

          % Anonymous User - Sep. 26, 2002 3:08 pm:
           Do you mean, these are the default parameters?
           http://www.zope.org/Documentation/Books/ZopeBook/current/AppendixB.stx
           lists for
           DTML Document: __call__(client=None, REQUEST={}, RESPONSE=None, **kw)
           DTML Method:   __call__(client=None, REQUEST={},                **kw)

           what abt RESPONSE? 
           also AppendixB says name lookup order is 1:**kw, 2:client, 3:mapping
           while
           http://www.zope.org/Documentation/Books/ZopeBook/current/AdvDTML.stx
           (section "DTML Namespaces") says nothing about **kw.