Re: [web2py] fetching db records with request.args(0)

2013-12-06 Thread raferbop
Thanks viniciusban, request.vars.id did the trick. On Friday, December 6, 2013 11:16:04 AM UTC-5, viniciusban wrote: > > You are sending vars to certificate and using args to retrieve the record. > > That's your problem. > > On Fri, Dec 6, 2013 at 2:10 PM, raferbop > > wrote: > > > > > >

Re: [web2py] fetching db records with request.args(0)

2013-12-06 Thread Vinicius Assef
You are sending vars to certificate and using args to retrieve the record. That's your problem. On Fri, Dec 6, 2013 at 2:10 PM, raferbop wrote: > > > # View - country.html > > {{for people in country:}} > > Birth > Certificate > > {{=(people.name)}} > {{=(people.dob)}} > {{=(people.height)}} > >

[web2py] fetching db records with request.args(0)

2013-12-06 Thread raferbop
# View - country.html {{for people in country:}} Birth Certificate {{=(people.name)}} {{=(people.dob)}} {{=(people.height)}} {{pass}} # Controller def certificate(): certificate = db(db.poeple.id==request.args(0)).select() return locals() # View - certificate.html {{for row in ce