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