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 =
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
2 matches
Mail list logo