Chapter 5.3. Updating Our Form

Now that we have bookmarks and categories, however, we notice that there’s no easy way to add the categories for a bookmark when we create them through our form. We could approach this problem in several ways. We could try to do this with CatWalk by mounting it inside our application; or we could write a standard HTML form, parse the post results in our controller, do whatever validation we need, and have our controller pass the data on to our SQLObject class, which will automatically inject it into the database. But the current manifestation of CatWalk isn’t easy to modify to do what we want, and handling validation, displaying error messages, and all of that seems like a lot of work.

So, let’s explore a ...

Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.