Re: [web2py] is this possible db.table(id).field.represent

2013-11-11 Thread Richard Vézina
The seconde choice seems to be what I was search for... I was know about .render(), but as you explain it is for rows only and don't apply when I use this short cut : db.table(id_of_record).field Thanks a lot. Richard On Fri, Nov 8, 2013 at 4:59 PM, Anthony abasta...@gmail.com wrote: Are you

[web2py] is this possible db.table(id).field.represent

2013-11-08 Thread Richard
Hello, How can I do this : db.table(id).field.represent Could a short cut be created to handle this use case? {{=form.custom.begin}} table class=table table-condensed table-hover theadtrth{{=T('Field label')}}/th/tr/thead tbody {{for r in rows:}} tr

Re: [web2py] is this possible db.table(id).field.represent

2013-11-08 Thread Anthony
Are you saying you want the represent function applied specifically to a reference field? Note, a Row object does not know with what DAL table it is associated, so it can't automatically apply the represent attributes of its fields. However, the Rows object has a new .render() method for this