O'Reilly logo

Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites by Gigi Sayfan, Kevin Dangoor, Mark Ramm

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required