As we’ve seen, such a URL can be submitted either within your browser or by scripts
that use tools such as the urllib package. Again, replace “localhost” with your server’s
domain name if you are running the script on a remote machine.
To update a record, fetch it by key, enter new values in the field inputs, and click
Update; the script will take the input fields and store them in the attributes of the class
instance in the shelve. Figure 1-17 shows the reply we get after updating sue.
Figure 1-15. peoplecgi.py reply page
Figure 1-16. peoplecgi.py reply for query parameters
Step 6: Adding a Web Interface | 65