Re: [web2py] record representation using a non-id column?

2011-07-20 Thread Johann Spies
On 9 July 2011 03:47, niknok nikolai...@gmail.com wrote: ** I have another unique column in my table that I would like to use as index for record representation. How do I tell web2py to use another index? Ttrying to use like: db.mytable.thisfield.represent = lambda id:

Re: [web2py] record representation using a non-id column?

2011-07-20 Thread Johann Spies
On 20 July 2011 14:09, Johann Spies johann.sp...@gmail.com wrote: I use this: db.define_table('akb_doccenter_location', Field('location')) Apologies, I did not complete the message before sending: the model includes a Field(uuid), obviously. Regards Johann -- May

[web2py] record representation using a non-id column?

2011-07-09 Thread niknok
I have another unique column in my table that I would like to use as index for record representation. How do I tell web2py to use another index? Ttrying to use like: db.mytable.thisfield.represent = lambda id: db.other(myidx).thatfield