Beispiel #1
0
 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()
Beispiel #2
0
 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() 
Beispiel #3
0
 def GET(self):
     clients = model.get_clients()
     return render.index(clients)
Beispiel #4
0
 def GET( self ):
     """ Mostrar listado de clientes """
     clients = model.get_clients()
     return render.index( clients )