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

webmaster@zope.org webmaster@zope.org
Thu, 26 Sep 2002 10:48:01 -0400


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

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

      This form could be processed by this script::

        ## Script (Python) "action"
        ##parameters=name, age
        ##
        container.addPerson(name, age)
        return container.responseTemplate()

        % Anonymous User - Aug. 6, 2002 12:15 am:
         How do you set the Template which is going to be executed witht the .responseTemplate() method?

        % Anonymous User - Aug. 21, 2002 11:59 am:
         responseTemplate is the id of the template that you want to execute. If your response template is called
         "printResult", for example, you will write:
           return container.printResult()

        % Anonymous User - Sep. 26, 2002 10:47 am:
         From the processing standpoint verythings alright, but the URL shown in the client browser is the name of the
         action script, not the response template!