I like the idea. Currently I am loading user groups on login. I just think it have to be called auth.user_groups so it will be more compatible with auth.user_id
http://zerp.ly/rochacbruno Em 29/01/2012 23:17, "Massimo Di Pierro" <massimo.dipie...@gmail.com> escreveu: > > 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.