Marin, Thanks a lot. This solved the problem....
Two questions: - why the brackets ?? - is this the most "elegant" what to do this ?? Thanks... On Fri, Jan 13, 2012 at 11:45 AM, Marin Pranjić <[email protected]>wrote: > Try this, > > dog = 'dog12345' > db.person[1][dog].select() > > On Fri, Jan 13, 2012 at 2:37 PM, Marcello Parra <[email protected]>wrote: > >> Thanks Ross.... >> >> I tried this, but did not work: >> >> - db.person[1].dog.select() raises: >> KeyError: 'dog' >> >> but.... >> - db.person[1].dog12345.select() >> works fine >> >> >> >> On Fri, Jan 13, 2012 at 10:46 AM, Ross Peoples <[email protected]>wrote: >> >>> I don't know if anyone has tried this kind of thing before. The only >>> idea I have right now is to alias your table objects. This MIGHT work, or >>> might make things worse :) Either way, try this and see if it works (no >>> promises): >>> >>> db.define_table('person12345', >>> Field('name'), >>> ) >>> db.person = db.person12345 >>> >>> db.define_table('dog12345', >>> Field('name'), >>> Field('owner', db.person) >>> ) >>> db.dog = db.dog12345 >>> >>> >> >

