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:

       from whatwhat.model import STATUS_BEHIND_SCHEDULE

In general, it’s ...

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.