def POST(self): postdata = web.input() username = web.net.websafe(postdata.username) password = web.net.websafe(postdata.password) if model.login(username, password): return render.clients(model.get_clients()) return render.error()
def POST(self): postdata=web.input() username=web.net.websafe(postdata.username) password=web.net.websafe(postdata.password) if model.login(username, password) : return render.clients(model.get_clients()) return render.error()
def GET(self): clients = model.get_clients() return render.index(clients)
def GET( self ): """ Mostrar listado de clientes """ clients = model.get_clients() return render.index( clients )