I made help'er function to generate representation

def ref_repr(reffered_table):
    return lambda foreign_key, self: reffered_table[foreign_key].name

so you can add representation this way:

Even when using the following it does not show the country name.
>     Field('shipping_country','reference country',requires=IS_EMPTY_OR(
> IS_IN_DB(db, db.country.id,'%(name)s'), null=None), 
>
 

> requires=ref_repr(db.country)),
>

-- 

--- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to