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

nobody@nowhere.com nobody@nowhere.com
Wed, 21 Aug 2002 11:59:30 -0400

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


      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()