Chapter 7.1.2. Exploring the Dashboard Index

After the user has been authenticated, the main body of the index method is evaluated:

def index(self):
    all_projects ="parent_project_id is Null" +
                                  "order by upper(name)"

    projects = [project for project in all_projects if not project.archived]

    archived_projects = [project for project in all_projects
                         if project.archived]

    people ='displayName')

    return dict(active_section='dashboard',

DashboardController’s index method is concerned with getting each of the top-level projects from the Projects table and sorting ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.