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

nobody@nowhere.com nobody@nowhere.com
Fri, 20 Sep 2002 07:08:09 -0400

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


      If the *updateInfo* script requires parameters, you must either
      choose a name for the DTML namespace binding (see Binding
      Variables below) so that the parameters will be looked up in the
      namespace, or you must pass the parameters in an expression,
      like this::

        <dtml-call expr="updateInfo(color='brown', pattern='spotted')">

        % Anonymous User - Sep. 4, 2002 12:34 pm:
         Calling a script with hardcoded values is pretty useless in the real world. It would be great to have an
         example that shows how to grab variables from the namespace and insert them into the parameter list in this

        % Anonymous User - Sep. 20, 2002 7:08 am:
         I'm not sure if the following snippet does the job:

         <dtml-call expr="updateInfo(color='<dtml-var hair_color>', pattern='<dtml-var hair_pattern>')">