Exemplo n.º 1
0
 def POST(self):
     """TODO Import email validation lepl.rfc"""
     i = web.input(name='', username='', email='')
     u = User(i.name, i.username, i.email)
     u.insert()
     raise web.seeother('/adduser')
Exemplo n.º 2
0
 def GET(self):
     tasks = Task.getall()
     users = User.getall()
     projects = Project.getall()
     return render().index(tasks, users, projects,
                         priorities=PRIORITIES, statuses=STATUSES)
Exemplo n.º 3
0
 def GET(self):
     users = User.getall()
     return render().adduser(users)