Hi David,

This should work:

db.participants.community_id.requires=IS_NOT_IN_DB(db
(db.participants.user==request.vars.user),db.table.community_id)

Just out of curiosity: why user and not user_id and why db.meeting and
not db.community?

db.define_table('participants',
    Field('user_id',db.user),
    Field('community_id',db.community),
    Field('stuff'))


Kind regards,

Annet.

Reply via email to