[Zope] Dynamic content in ZPT
Nicolas Évrard
nicoe@wanadoo.be
Tue, 20 Aug 2002 10:31:23 +0200
--kXdP64Ggrk/fb43R
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
* Chetan Kumar [08:29 20/08/02 CEST]:=20
>Hi all
>I have a form in ZPT which calls a python script which looks up a=20
>database to
>generate some data. Now, the data needs to appear in the same page in a=20
>table
>if the submit button is used.
>The problem here is to generate the
>
><form method=3D"post" action=3D"GetProjectWiseDataPython">
>
>further down the selection is made as
>
> <select name=3D"ProjectName">
> <option tal:repeat=3D"options here/GetProjectsPython"
>tal:content=3D"options/ProjectName">name</option>
> </select>
>
></form>
>
>This is passed to GetProjectWiseDataPython.
>
The way I do it is to call my page from the script this way
return container.index_html( result =3D gnagnagna )
and in index_html options/result is where this result might be find
--=20
(=B0> Nicolas =C9vrard
/ ) Li=E8ge - Belgique
^^
--kXdP64Ggrk/fb43R
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9Yf5b1fJ5cz1/+2URAroKAKCZzrCzs56fKoSIr/qum4s+0Oa0QQCgj/td
q4/ySnpmdEpjc6/oRBgg+rM=
=+uvp
-----END PGP SIGNATURE-----
--kXdP64Ggrk/fb43R--