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