[ZPT] How do I use form variable to pass as a parameter to a python script?

Geir Bækholt Geir Bækholt
Mon, 24 Feb 2003 18:16:33 +0100


DT> Hello,

DT> <div tal:define="results python:here.listProducts(type=0)"
DT>      tal:replace="nothing">stuff</div>

DT> I've tried this:
DT> <div tal:define="results python:here.listProducts(type='string(${request.form.car_type})')"
DT>      tal:replace="nothing">stuff</div>


check if this works:
tal:define="results python:here.listProducts(type=request.form.car_type)

:)

--
Geir Bækholt