Chapter 2.5. Summary

  • The TurboGears command tg-admin quickstart can create a brand new TurboGears project for you, complete with all the files you need to get started.

  • TurboGears publishes the methods defined in the root controller (which you can find in controllers.py).

  • TurboGears templates are standard XHTML documents, with a few extra processing directives.

  • TurboGears uses decorators such as @expose(template=“hello.template.welcome”) to determine which methods can be called directly from the web, and to define which template can be used to render the final page.

  • When your controller returns a dict, the contents of that dictionary are automatically available as local variables in your template.

  • If you’re running Python 2.3, you can use decorators ...

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.