[Zope] RE: ZPT and SESSION variable

Andreas Tille tillea@rki.de
Fri, 27 Sep 2002 08:51:21 +0200 (CEST)


On Fri, 27 Sep 2002, Julian Melville wrote:

> In a python script:
>
>  xxx = 3
>  yyy = ['list', 'of', 'stuff']
>  return container['test.html'](xxx=xxx, yyy=yyy)
>
> Inside the ZPT, the request is already available as the variable 'request'
> and the variables you pass in come in underneath a variable called
> 'options':
>
>   <span tal:replace="options/xxx">dummy content</span>
>
> will show up in your page as just the number 3.
>
>  <div tal:repeat="item options/yyy" tal:content="item">dummy content</div>
Many thanks!

This should be documented in Zope Book or anywhere else were it is easy
to find!

Kind regards

         Andreas.