Given this:
db.define_table('things',Field('name'))
db.define_table('stuff',Field('name'),Field('thing',db.things))
db.stuff.thing.represent = lambda v: v.name
t = db.things.insert(name='a thing')
db.stuff.insert(name='a stuff',thing=t)
row=db(db.stuff.id==1).select().first()Could (should?) __str__ be added to Reference class so that it uses the field's represent function if present? row.thing -> 1 str(row.thing) -> a thing -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

