return container.objectValues('ZopePageTemplate')
The meta type is 'Page Template' try: return container.objectValues('Page Template') -- Andy McKay www.agmweb.ca ----- Original Message ----- From: "David Bear" <David.Bear@asu.edu> To: <zope@zope.org> Sent: Wednesday, November 13, 2002 3:49 PM Subject: [Zope] enumerating files in a folder
I'm getting really mad at myself now. I have a folder call 'stuff'. In the stuff folder I have a python script call getStuff which looks like this
return container.objectValues('ZopePageTemplate')
Then, in the parent folder I want to use TAL to list the templates in the stuff folder. I do
<li tal:repeat="dept container/departments/getDepartment"> <a href="test" tal:attributes="href dept/getId" tal:content="dept/getTitle">Test</a></li> <li tal:omit-tag>test</li>
It keeps comming up empty... what simple thing have I missed?
or is there a better way?
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )