[web2py] Problem with virtual field

2013-07-30 Thread Loïc
Did you try Field.Virtual('area_name', lambda row: db.area(row.area_id).name), ? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@goog

[web2py] Problem with virtual field

2013-07-30 Thread Eduardo Cruz
Hi, I have this table db.define_table('station', dates, Field('name', 'string', unique=True), Field('average_time', 'integer'), Field('area_id', 'reference area', requires=IS_IN_DB(db, 'area.id', '%(name)s') ,label="Area", represent=