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

webmaster@zope.org webmaster@zope.org
Tue, 03 Dec 2002 13:04:39 -0500


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.

        % Anonymous User - Dec. 3, 2002 1:04 pm:
         This section is almost ridiculously bad. I don't want to use DTML for all the goos reasons I want to use ZPT!
         So why not give me a completely worked example????? The slangy language about sloppiness and lameness is just
         icing on the cake.