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',
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():
2 matches
Mail list logo