[Zope] how to fix this code problem?
Lennart Regebro
lennart at regebro.nu
Mon Oct 20 10:48:43 EDT 2003
> '''' index_html
> <html>
>
> <body>
> <table >
> <tr tal:repeat="item container/myfiles">
> <td tal:content="item/getId">Sample.tgz</td>
> </tr>
>
>
> </table>
>
> </body>
> </html>
>
> and a python file
> '''myfiles
> return container.objectValues('File')
You call the "myfiles" script on the container object, and then you call
"container.objectValues", which will return the objectValues of the
containers container.
Maybe
return context.objectValues('File')
would work better?
More information about the Zope
mailing list