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.2. Dashboard Templates

The next logical place to go in our WhatWhat code walkthrough is the template code that displays the Dashboard. You can see a sample of this template’s output in Figure 7.1.

Figure 7.1. Dashboard Listing of open projects

This is by far the largest Kid template we’ve seen, so it should help you to see how to put everything together in a more complex page.

The first thing the whatwhat.templates.dashboard.index template does is use Kid’s <?python ?> syntax to embed a brief snippet of Python into the template:

<?python
       from whatwhat.model import STATUS_BEHIND_SCHEDULE
?>

In general, it’s ...

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