Section 8.5. Summary


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 formatted feeds for you.




Rapid Web Applications with TurboGears(c) Using Python to Create Ajax-Powered Sites
Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites
ISBN: 0132433885
EAN: 2147483647
Year: 2006
Pages: 202

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net