Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. db.parceiro.id.represent = lambda id: SPAN(A('%i editar'%id,_href=URL(r=request,c="default",f="editar_parceiro",args=id)))
  2. #db.parceiro.uf.requires = IS_NULL_OR(IS_IN_DB(db,'opt_cidades.id','%(uf)s'))
  3. db.parceiro.uf.requires = IS_IN_SET(['AC', 'AL', 'AP', 'AM', 'BA', 'CE', 'DF', 'ES', 'GO', 'MA', 'MT', 'MS', 'MG', 'PA', 'PB', 'PR', 'PE', 'PI', 'RJ', 'RN', 'RS', 'RO', 'RR', 'SC', 'SP', 'SE', 'TO'])
  4. db.parceiro.cidade.requires = IS_NULL_OR(IS_IN_DB(db,'opt_cidades.uf','%(nome)s'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement