Re: [web2py] Re: Not able to get db.table.field.represent to output urls in SQLTABLE

2012-05-31 Thread Saifuddin Rangwala
db.define_table( 'users', Field('name'), Field('email') ) db.users.name.represent = lambda name, row: A(name, _href=URL('default', 'download', args=name)) On Thu, May 31, 2012 at 8:22 PM, Saifuddin Rangwala < saifuddin.rangw...@gmail.com> wrote: > Doesnt work. I tried doing thi

Re: [web2py] Re: Not able to get db.table.field.represent to output urls in SQLTABLE

2012-05-31 Thread Saifuddin Rangwala
Doesnt work. I tried doing this with the users table of examples application that comes with web2py also. Is there some setting to enable this? I do not get any error also. -Saif. On Thu, May 31, 2012 at 7:16 PM, villas wrote: > Try this: > > db.Test.name.represent = lambda name, row: A(name

[web2py] Re: Not able to get db.table.field.represent to output urls in SQLTABLE

2012-05-31 Thread villas
Try this: db.Test.name.represent = lambda name, row: A(name, _href=URL('default', 'download', args=name)) On Thursday, 31 May 2012 13:34:01 UTC+1, Saifuddin Rangwala wrote: > > Hi, > > I am new to web2py. > > I have created a simple table like below: > > db.define_table('Test', > Field('na