O'Reilly logo

Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites by Gigi Sayfan, Kevin Dangoor, Mark Ramm

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3.2. Design Patterns and Object-Oriented MVC

In a fully MVC framework, views are observers of controllers and models, and models are observers of the controller. Okay, so you might be asking us, “What exactly does it mean for a view to be an ‘observer of the model?’” Well, this is “design pattern speak” for saying that the view either subscribes to the model so that it can be updated whenever the model is changed, or that it polls the model periodically for updates and changes when that happens.

Perhaps you are asking yourself why all this stuff about MVC is important. Will it help me build better applications or help me impress Jenny from marketing?

It might. You’ll be able to build more-robust applications, with better ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required