Hi Matt

add auth.settings.create_user_groups = True in db.py then for every
user created a new group is created for him with the name 'user_id'

To add a custom group once, you may add a function to your model that
do the post-registeration stuff [including adding groups]

def post-registeration_stuff(form):
      group = MY_CUSTOM_GROUP
      if not id_group(group):
             auth.add_group(group)

auth.settings.register_onaccept = post-registeration_stuff       ->
function works only after registeration is accepted

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to