Say I have the following tables: db.define_table('person', Field('name', unique=True)) db.define_table('dog', Field('name'), Field('owner', db.person)
Now on the dog table, I want to add a validator to ensure that all the dogs that belong to one person have a unique name. In other words, if Bill has the dogs Alissa, Muff and Ouahoo, and John has the dogs Muff, Ouahoo and Gisbi it's OK, but not if John has the dogs Muff, Ouahoo and Muff. How can I define a validator to do that? --