1. Controller

    1. from turbogears import controllers, flash  
    2.   
    3. class Root(controllers.RootController):  
    4.   
    5.     @expose(template="myproject.templates.people")  
    6.     def people(self):  
    7.         flash("Hello World!")  
    8.         return dict(people=Person.select())  
< Previous Next >