I have a table as follows:

db.define_table(
    'participants',
    Field('user'),
    Field('community_id',db.meeting)
    Field('stuff')
    )
db.participants.community_id.requires = IS_IN_DB(db,'community.id')



What I want to do is require that the user be represented for a given
community only once.  Something like the below which obviously does
not work

     db.participants.user.requires.IS_NOT_IN_DB('participants',user
+community)


Is this possible without a custom validator?

Reply via email to