At the core of an MVC style application is your domain model, which in TurboGears is usually connected to a relational database through SQLObject. As mentioned in Chapter 1, â€œIntroduction to TurboGears,â€ SQLObject makes database rows into objects and the data they contain into attributes.
This means you can write simple commands like these:
> User(first_name="Jane", last_name="Goodall") > users_named_jane = UserTable.selectBy(first_name="Jane")
For now, weâ€™ll assume that the User class is already created. So, the first ...