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 7.3. Adding a New Project

The Dashboard isn’t just a place to display existing projects, it also provides a way to quickly add a new project to your database.

Rather than have a form for adding a new project always sitting there taking up space in the dashboard form, the WhatWhat developers created a JavaScript function that toggles the form between hidden (its default state) and visible.

Here’s the code in dashboard.kid to display the form:

The sample bookmarker application uses the TurboGears form widget to automatically generate our forms, but the WhatWhat project takes another approach and creates the form ...

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