Guest User

Untitled

a guest
Sep 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. def index():
  2.     response.flash = T('Bem Vindos ao Cadastro de Contatos')
  3.    
  4.     query = db().select(db.contatos.ALL)
  5.     contatos = []
  6.     for p in query:
  7.    
  8. contatos = {'nome':p.nome,'telefone':p.telefone, 'celular':p.celular,'foto':p.foto'}
  9.    return dict(contatos=contatos)
Add Comment
Please, Sign In to add comment