[web2py] Re: User group names based on username instead of id

2016-05-04 Thread Antonio Salazar
I actually read that section two days ago, when the requirements were still being defined. I don't know why I forgot it. Probably the ominous warning *"The creation of the group can be disabled [...] although we do not suggest doing so."* got me thinking why and the rest slipped my mind. Later

[web2py] Re: User group names based on username instead of id

2016-05-04 Thread Niphlod
http://web2py.com/books/default/chapter/29/09/access-control#Authorization On Wednesday, May 4, 2016 at 9:59:13 PM UTC+2, Antonio Salazar wrote: > > Thank you! > > For some reason I was thinking of this setting as a boolean, and figuring > how to use a callback to rename the group :/ > > P.S. for

[web2py] Re: User group names based on username instead of id

2016-05-04 Thread Antonio Salazar
Thank you! For some reason I was thinking of this setting as a boolean, and figuring how to use a callback to rename the group :/ On Wednesday, May 4, 2016 at 2:01:16 PM UTC-5, Niphlod wrote: > > from the source it seems that the setting > > create_user_groups > > which has a default of > > "u

[web2py] Re: User group names based on username instead of id

2016-05-04 Thread Niphlod
from the source it seems that the setting create_user_groups which has a default of "user_%(id)s" can be used. in your case it seems that setting it to user_%(username)s should do the trick. On Wednesday, May 4, 2016 at 8:48:49 PM UTC+2, Antonio Salazar wrote: > > I've disabled user group c