I have the same problem... I think there is a bug.

Try to do this :

'db.adres'

In your model "inwoner".

For me it solve the problem in old app (create in june or july that I
transfert from one web2py version to an other since that time)... But not
working if I am using a new freshly created app.

I sent many emails last week that didn't get on the mailing list...

Richard

On Sat, Feb 12, 2011 at 10:04 AM, Johann Spies <[email protected]>wrote:

> I get the following output :
>
>  inwoner.id inwoner.van inwoner.adres 1 Spies1
> the following code:
>
> db.define_table('adres',
>                  Field('straat'))
>
>
> db.define_table('inwoner',
>                  Field('van'),
>                  Field('adres', db.adres,
>                        requires = IS_IN_DB(db,'adres.id')))
>
> db.inwoner.adres.represent = lambda id: db.adres(id).straat
>
> Why does represent not represent  inwoner.adres as 'straat' from 'adres?
>
> Regards
> Johann
> --
>  May grace and peace be yours in abundance through the full knowledge of
> God and of Jesus our Lord!  His divine power has given us everything we need
> for life and godliness through the full knowledge of the one who called us
> by his own glory and excellence.
>                                                     2 Pet. 1:2b,3a
>
>

Reply via email to