Chapter 3. The Architecture of a TurboGears Application

In This Chapter

  • 3.1 What Is MVC? 26

  • 3.2 Design Patterns and Object-Oriented MVC 27

  • 3.3 Understanding SQLObject and TurboGears Models 30

  • 3.4 Understanding CherryPy and TurboGears Controllers 33

  • 3.5 Understanding Kid and TurboGears Views 36

  • 3.6 MVC Meets Ajax 37

  • 3.7 Summary 39

TurboGears is built around the model-viewer-controller (MVC) paradigm. MVC is a system for breaking up applications into three different main sets of components: models, views, and controllers (see Figure 3.1). This is good because the model helps you to write applications faster and makes them easier to understand and maintain.

Figure 3.1. Keep your code separated with MVC

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

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: