[web2py] Design question. Opinions please

2012-04-09 Thread Cliff
Using the dog-owner model from the examples, you might have a model like this: db.define_table('dog', Field('dog_name')) db.define_table('owner', Field('owner_name')) db.define_table('dog_owner', Field('dog_id', db.dog), Field('owner_id', db.owner), Field('owner_plays_fetch_with_dog',

[web2py] Design question.

2011-12-10 Thread annet
I have a function which queries a number of tables to render business cards. Depending on an organizations subscription there are five possible dictionaries to return. Since I always try to have one return statement in my functions I now have: def details():