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 8.1. Cookies and RecentChanges

One critical feature of the WhatWhat Status software is the recent changes page, which enables users to see anything new on any of the projects in the system. And Recent-Changes is also worth a look because it uses a number of new TurboGears features, which can make your life easier.

In particular, we look at how to use CherryPy’s response object to set cookies, how to define your own widgets, and how to use Kid template non-XHTML XML formats (in this case, RSS and Atom).

The cherrypy.response object enables you to add special information to the response that CherryPy will pipe out to the user. The response object has headerMap, SimpleCookie, body, sendResponse, and wfile attributes; and we discuss each ...

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