[Zope] parameter passing problem.

Hong Yuan hongyuan at homemaster.cn
Fri Mar 4 18:29:45 EST 2005


prabuddha ray wrote:

> I've a parmetarized ZSQL method used to fill data in a combobox.
> When changing the selection of another combobox i'm calling the page 
> itself again and have to pass the value in the previously selected 
> combobox as parameter in the ZSQL method filling data in 2nd combobox.
>
> i tried this <div tal:repeat="district container/getDistrictUser" 
> request.form.districtname> , districtname is the parameter to be passed
>
> what sud be the correct syntax


You can use python syntax to pass parameters explicitly to ZSQL methods, 
like:

<div tal:repeat="district 
python:context.getDistrictUser(some_param=request.form.districtname)">

Hong Yuan


More information about the Zope mailing list