Chapter 19.5. Widget Browser

The Widget Browser is one of the most useful tools in the TurboGears Toolbox. We mentioned it in Chapter 16, “TurboGears Widgets: Bringing CSS, XHTML, and JavaScript Together in Reusable Components;” let’s take a little bit more time to look at it in depth here. The Widget Browser makes use of a special feature of setuptools, which allows eggs to define an entry-point. Every widget package in the Cog Bin (www.turbogears.org/cogbin) has a specially-defined entry point. This allows the Widget Browser to dynamically grab information for every widget you have installed. The information is always up-to-date, and everything works.

There is one exception to this rule. Some third-party widgets do not define a widget ...

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.