[Zope] press on checkbox execute python script

Michael Bleijerveld michael at bleijerveld.nl
Thu Oct 9 12:02:58 EDT 2003


Hi,

When the checkbox is selected I want to execute the Python script
getSelection. The id of the file should then be added to myList for further
processing.
However when I look into myList nothing is changed.

<form action="." method="post">
  <dtml-in expr="getFiles()" >
    <input type="checkbox"  name="getSelection(id)" value="id" > <a
href=<dtml-var expr="getLink(id)">  /a><dtml-var id><BR>
</dtml-in>
</form>

parameter= file
session=context.REQUEST.SESSION
l=session.get("myList", [])
l.append(file)
session["myList"]=l

What is wrong ?

Kind regards.

Michael





More information about the Zope mailing list