Re: [web2py] Hierarchical Database Selection

2013-01-11 Thread Bruno Rocha
On Fri, Jan 11, 2013 at 9:05 PM, Dave Cenker wrote: > However, this returns a list of company IDs instead of names and when I > try to do something like this: > > db(train.company.id == id) it doesn't work. > should be db(db.train.company == is) > > What I'd really like to do is get a list of

[web2py] Hierarchical Database Selection

2013-01-11 Thread Dave Cenker
I am putting together a website for my son so that he can keep track of trains that he has seen in our area. Here are the applicable models: db.define_table('company', Field('name'), Field('symbol')) db.define_table('train', Field('user', 'reference auth_user', default=auth.user_id), Fie