Chapter 8.5. Summary

  • You can use cherrypy.request.simple_cookie to get access to any cookie information that came along with the request. Although CherryPy gives you easy access, the simple_cookie is a part of Python’s built in cookies module.

  • You can create your own widgets by subclassing the widget base class and defining template, template_vars, and whatever params you need.

  • Your widgets can encapsulate JavaScript and CSS, so you can reuse them on multiple pages. The widget will automatically include the right links in the page header for you.

  • TurboGears includes a FeedController module that makes it easy to create new RSS and Atom feeds. You just create a list of dictionaries containing the required elements, and FeedController creates properly ...

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.