[web2py] Re: Record representation : multiple levels of references

2014-05-23 Thread Anthony
You can use a lambda: db.define_table('other_table', Field('key_id', 'reference key', requires=IS_IN_DB(db, 'key.id', lambda r: '%s %s (%s)' % (r. person_id.first_name, r. person_id.last_name, r.id Anthony On

[web2py] Re: Record representation : multiple levels of references

2014-05-23 Thread Louis Amon
wicked cool thanks a bunch ! On Friday, May 23, 2014 3:28:43 PM UTC+2, Anthony wrote: You can use a lambda: db.define_table('other_table', Field('key_id', 'reference key', requires=IS_IN_DB(db, 'key.id', lambda r: '%s %s (%s)' % (r. person_id.first_name,