def GET(self): projects = Project.getall() return render().addproject(projects)
def POST(self): i = web.input(name='') p = Project(i.name) p.insert() raise web.seeother('/addproject')
def GET(self): tasks = Task.getall() users = User.getall() projects = Project.getall() return render().index(tasks, users, projects, priorities=PRIORITIES, statuses=STATUSES)