Hi all The situation 1. Users have a number of entries in their accounts. These are stored in MySQL. 2. The users are presented with their entries. They should be able to modify these. Here is how it is planned. <table> <tr> <td> Name </td> <td> Entry </td> <td> Details </td> <td>Update</td> <tr> <tr tal:repeat="GotEntry here/GetMyEntries"> <td tal:content="GotEntry/Name></td> <td tal:content="GotEntry/Entry"></td> <td tal:content="GotEntry/Details></td> <td tal: ###############><td> </tr> </table> I need to replace the "#####" space with something that works. Under the column Update I need to provide a link to a python script (UpdateData). The script should get the Name, Entry, Details from the ZPT and show the present data in a form. I can handle if the script gets these arguments. The problem is with create a link which will call UpdateData with proper arguments. I have tried the following <td tal:replace="python: string${request/URL0}/UpdateData"> </td> But this will not pass the values of arguments. What is the trick to make if say URL0/UpdateDate?Name=Something where Name is the entry in the same column. Meaning the link in each rows calls UpdateData with different values. TIA. Chetan
Chetan Kumar wrote:
What is the trick to make if say URL0/UpdateDate?Name=Something where Name is the entry in the same column.
It should be read as "Name is the entry under Name in the same row"
Meaning the link in each rows calls UpdateData with different values.
Chetan Kumar wrote at 2003-2-10 13:00 +0530:
... Under the column Update I need to provide a link to a python script (UpdateData). The script should get the Name, Entry, Details from the ZPT and show the present data in a form. I can handle if the script gets these arguments.
The problem is with create a link which will call UpdateData with proper arguments. Creating links is made easy with the functions "url_query" and "make_query" from the "ZTUtils.Zope" module.
Check their source. It contains a good description. Dieter
participants (2)
-
Chetan Kumar -
Dieter Maurer