[Zope] Acquisition Template
Tue, 25 Jun 2002 21:57:47 +0200
Tuesday, June 25, 2002, 8:24:31 PM, you wrote:
MC> What's diference between this code?
MC> 1. tal:repeat="dirDoc here/objectValues"
This one gives you all objects contained in the object on which the
template is called.
MC> 2. tal:repeat="dirDoc python:container.objectValues('Folder')"
This gives you all 'Folder' objects contained in the object which
contains the template itself.
MC> How do I translate "here/objectValues" to
MC> the same code using python script? What's
MC> the code of python script could substitute
'context' in script(python) is the same as 'here' in ZPTs.
in a script(python) you would write:
to get the same result as
Geir Bækholt web-developer
firstname.lastname@example.org funcom oslo | webdev-team