[Zope] Update Multiple Records

Andrew Milton akm at theinternet.com.au
Tue Mar 21 12:36:17 EST 2006


+-------[ April Lekin ]----------------------
| Hi,
| I have a web page that goes to a database and pulls out a bunch of records 
| for display and then I gave each field the ability to modify except the 
| primary ID.
| 
| The problem I'm having is how do I make each field unique so that I can go 
| back to the database and update the record.  I was thinking about putting 
| the primary key in the name like:
| <input type="text" name="lname + ID" value="">
| <input type="text" name="fname + ID" value="">
| 
| but I don't know how to do that with python.
| 
| Is there another way to update a bunch of records at once?  

<input type="text" name="item.lname:records" value="">
<input type="text" name="item.fname:records" value="">


You'll get an a REQUEST object called item which is a list of records with
each attribute set inside it.

-- 
Andrew Milton
akm at theinternet.com.au


More information about the Zope mailing list