[web2py] new feature in trunk ... help test

2012-01-29 Thread Massimo Di Pierro
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 =

Re: [web2py] new feature in trunk ... help test

2012-01-29 Thread Bruno Rocha
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