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

webmaster@zope.org webmaster@zope.org
Wed, 25 Sep 2002 20:53:20 -0400

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


      Zope Page Templates don't work particularly well with the
      form/action pattern since it assumes that input processing and
      response presentation are handled by the same object (the
      action). Instead of the form/action pattern you should use
      form/action/response pattern with Page Templates. The form and
      response should be Page Templates and the action should be a
      script. The form template gathers the input and calls the action
      script. The action script should process the input and return a
      response template. This pattern is more flexible than the
      form/action pattern since it allows the script to return any of
      a number of different response objects.

        % Anonymous User - Sep. 25, 2002 8:53 pm:
         A decent DTML user also does form/action/response, DTML newbies are mislead.
         But for really small computations a separate script seems overkill.