Thanks.
It will be very helpful if somebody can update these lines in the book
because it still not clear to me how to use the new syntax in each of these
instances. I still do not know how 'record' is defined here.
db.mytable.name.represent = lambda name: name.capitalize()
db.mytable.other_id.represent = lambda id: db.other(id).myfield
db.mytable.some_uploadfield.represent = lambda value: \
A <http://web2py.com/book/default/docstring/A>('get it', _href=URL
<http://web2py.com/book/default/docstring/URL>('download',
args=value))
I have no idea how to use 'record' e.g. in your example of the new grid:
db.dog.owner.represent = lambda x,record: db.person[x].name
is not correct
Regards
Johann
--
May grace and peace be yours in abundance through the full knowledge of God
and of Jesus our Lord! His divine power has given us everything we need for
life and godliness through the full knowledge of the one who called us by
his own glory and excellence.
2 Pet. 1:2b,3a