[ZPT] Re: accessing "repeat" variables

Michal Kurowski michal@genesilico.pl
Wed, 3 Jul 2002 21:06:29 +0200


Dieter Maurer [dieter@handshake.de] wrote:
> Michal Kurowski writes:
>  > How actually shall we access variables in the tal:repeat statements ?
>  > 
>  > Is it possible to use them as arguments to outer scripts/templates ?
>  > 
>  > Let's say I've got this:
>  > 
>  > <div tal:repeat="result batch">
> Sure!
> 
> 	python: ...your_zpt(obj=result) ...
> 	
> Inside "your_zpt", you access it with "options/obj".


Sorry, I mispelled that: I meant arguments in  outer script/templates
(still no luck).			   ^^

I think he problem is I use a "string" as a link attribute and the
repeat variable is an object.

-- 
Michal Kurowski
<michal@genesilico.pl>