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

nobody@nowhere.com nobody@nowhere.com
Tue, 10 Sep 2002 15:35:05 -0400


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

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

    This will return a list of any File objects in the FileLib folder.
    Now, edit your 'index_html' Page Template and add some more 'tal'
    attributes to your mock-up::

      ...
      <tr tal:repeat="item container/files">
        <td><a href="Sample.tgz" class="filename"
               tal:attributes="href item/getId"
               tal:content="item/getId">Sample.tgz</a></td>
        <td tal:content="item/content_type">application/x-gzip-compressed</td>
        <td tal:content="item/getSize">22 K</td>
        <td tal:content="item/bobobase_modification_time">2001/09/17</td>
      </tr>
      ...

      % Anonymous User - May 31, 2002 2:14 am:
       Right here, or after the next paragraph, a careful and thorough explanation of how the 'magic' Python script
       just created is found and used by the tal:repeat is needed. For newbies to Zope starting right in with TAL
       and little/no Python experience this is otherwise a huge conceptual leap (I speak from personal experience).

      % Anonymous User - Sep. 10, 2002 3:35 pm:
       I agree whole-heartedly with the May 31 comment. This is not the first time in this book I found myself
       really wanting to know this.