예제 #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
파일: index.py 프로젝트: mekarpeles/archaea
 def GET(self):
     tasks = Task.getall()
     users = User.getall()
     projects = Project.getall()
     return render().index(tasks, users, projects,
                         priorities=PRIORITIES, statuses=STATUSES)