[Zope] how to fix this code problem?

Jianping Zhu jzhu at fisher.forestry.uga.edu
Mon Oct 20 14:18:33 EDT 2003


''''code 1 index_html
<html>
<body>
<table >
  <tr tal:repeat="item container/objectValues">
    <td tal:content="item/getId">Sample.tgz</td>
      </tr>


        </table>

	</body>
</html>

with above code when i hit test index_html i get following result which are all
files and sub-directoy on current folder

index_html  ''' a file 
myfiles     ''' a file 
Files       ''' a folder

I am now tring to use python script to show all file 

I put two files on current diectroy

'''' 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')

when i test index_html i expect to get a list of two files index.html
and myfiles. but disponitedly it return nothing!!

how can i fix this problem?

Thanks












More information about the Zope mailing list