Hi, I need only one auth_user form with the option to select the group membership in order to get a simple way to add users.
I'm thinking override the auth_membership table use, and add a reference from auth_user directly to auth_group to achieve it, also formatting the output of the drop down menu with format='%(role)s' But I need statements like '@auth.requires_membership(group_id=1)' to secure my app... First, what do you think about my approach? Second, how can I get a feature like @auth.requires_role(role_id=1) that get the reference from my auth_user db table? Third, how can I add the format to the auth_group table if it was created by web2py? PD: In the past I was solve it using manual insert code or another approaches like suggested by Bruno here: http://rochacbruno.com.br/web2py-manage-users-and-membership-in-the-same-form/ but now I want achieve it more cleanly... Posted first in http://stackoverflow.com/questions/13387776/web2py-auth-membership-table --

