Chapter 7.5. Summary

  • TurboGears provides the identity module for easy authentication/authorization in your web applications.

  • You can restrict access to a particular method with @require(identity.not_anonymous) or any combination of the identity checks.

  • Identity also provides a special controller class (SecureResource) that enables you to protect that class and all its methods with a single require=identity.not_anonymous.

  • You don’t have to rely on your controller to provide all the variables in your Kid templates—you can import anything you need using the <?python ?> syntax Kid provides.

  • It’s easy to create pop-up forms with a little bit of JavaScript. But unless you submit them to the server asyncronously, this isn’t quite Ajax yet. We get ...

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.