[Zope] ZPT dynamic Path, call method

Chris Withers chrisw@nipltd.com
Wed, 24 Apr 2002 12:39:53 +0100


trash.mail@gmx.ch wrote:
> 
> Hello together,
> How can I put the request variable "folder" to the path for to call the
> method?
> I was trying but itemsobj is not the request variable "folder"
> 
> <span tal:define="global itemsobj request/folder"
>       tal:content="itemsobj">dummy Text</span>
> 
> <div tal:define="files python:here.aq_parent.itemsobj.getFiles(sort,
> reverse)">

Here ya go:

<tal:x define="folderName request/folder;
               theFolder  here/?folderName;
               items      theFolder.getFiles(sort,reverse);">
<span tal:content="theFolder">Dummy Text</span>

...

</tal:x>

cheers,

Chris