auth.mygroups

is a dictionary of (key,value) = (group_id,role)

This makes it easy to create objects like

db.define_table('thing',
    Field('name'),
    Field('groups_with_access','list:reference auth_group'))

and select them with

mythings =
db(db.thing.groups_with_access.contains(auth.mygroups.keys())).select(db.thing.ALL)

Before this makes it into stable I would like to hear comments and
suggestions for improvement.

Reply via email to