--On Montag, 11. November 2002 13:51 +0100 Blurg <blurg@gluipzak.nl> wrote:
Hi,
I am reading the chapter about ZPT (2.5, Chapter 5) and trying this table in a file named 'index_html':
<table border="1" cellpadding="5" cellspacing="0"> <tbody> <tr> <td class="header">Name</td> <td class="header">Type</td> <td class="header">Size</td> <td class="header">Last Modified</td> </tr> <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/getContentType">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> </tbody> </table>
And this python script named 'files':
return container.objectValues('File')
This is the result when I test it:
<table border="1" cellpadding="5" cellspacing="0"> <tbody> <tr> <td class="header">Name</td> <td class="header">Type</td> <td class="header">Size</td> <td class="header">Last Modified</td> </tr> </tbody> </table>
So, actually, the tal:repeat table row has disappeared for some reason. But there are folders, page templates, python scripts etc. residing in it..
objectValues("File") only returns objects of type File in the container and *not* in subfolders...maybe that's your problem?! -aj