Guest Book

This example shows how to create a simple guest book.

The guest book stores its entries as file objects in the Entries folder. This page displays the entries by looping over a sorted list of entries and displaying each one. The list of entries is created by the getEntries script. The formatEntry script formats each guest book entry. To remove an entry, remove its file from the Entries folder. An alternate version of this application could use ZSQL Methods to store guest book entries in a relational database.

The addEntry.html template provides a form that allows you to sign the guest book. The form is processed by the addEntry script. The addEntry script stores the entry as a file. The script has the "manager" proxy role, which allows the script to create a file regardless of the user's permissions.

Sign the guest book

Entries

By Kevin
2026/10/20
This is an example of the Guest Book originally made for an older version of Zope back in 2002.