[Zope] Returning a ZPT form with fields filled in

Jan Van Uytven wyvern at uvic.ca
Fri Mar 12 15:34:12 EST 2004


hey all,

I have a page template that displays a list of rows from a database,
along with a radio button on each row and an 'edit' button. When a radio
button is selected and 'Edit' pressed, I want to send the user to
another page that contains a form with all the values filled in with the
data of that specific row, so the user can modify the information and
submit the changes to the database.

I've created the page that displays the rows, along with the radio
button... I've also got the page with the form, and associated
script/ZSQL method for updating the database.

What I don't know how to do is the populate the form with the
information I need. Can I use a python script to return the form page
with the values filled in? How?

BTW the forms are based on Formulator forms, if that helps or makes a
difference.

Much thanks,

Jan


---
Jan (Wyvern) Van Uytven
Sysadmin, UVic TRIUMF
wyvern at uvic.ca

Randomly selected from my quote-file:

"Every revolution evaporates, leaving behind only
the slime of a new bureaucracy."
	- Franz Kafka




More information about the Zope mailing list