[ZPT] How to pass arguments?

Evan Simpson evan@digicool.com
Tue, 15 May 2001 15:39:59 -0400


From: "Wade Leftwich" <wleftwich@industryclick.com>
> But what if I want to specify a customer_id parameter? This does not work:
>
>    <span tal:repeat="item container/myquery(customer_id=42)">

You need to use a Python expression:

<span tal:repeat="item python:container.myquery(customer_id=42)">

Cheers,

Evan @ digicool