[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Dynamic Content with DTML

webmaster@zope.org webmaster@zope.org
Tue, 08 Oct 2002 16:51:07 -0400


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

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

    For example when you query a database with a SQL Method it
    typically returns a list of results.  Here's how you might use
    DTML to format each result from a database query::

      <ul>
      <dtml-in frogQuery>
        <li><dtml-var animal_name></li>
      </dtml-in>
      </ul>

      % Anonymous User - Oct. 8, 2002 4:51 pm:
       But a ZSQL method doesn't normally return its list of results named by a variable, such as 'animal_name'. You
       should mark code that's for illustration purposes (ie, not working code) as such, the user who tries this,
       even if they create a SQL method called froqQuery that returns results, is going to see 'error, can't find
       animal_name'.