Thanks Massimo!
On Dec 3, 5:53 am, Massimo Di Pierro <[email protected]> wrote: > def register_in_group(): > group_id = request.args(0) > auth.settings.register_onaccept=lambda form: > auth.add_membership(group_id,form.vars.id) > form = auth.register() > return dict(form=form) > > then call > > http://.../register_in_group/2 > > On Dec 2, 9:24 am, lyn2py <[email protected]> wrote: > > > > > > > > > Hello, > > > I would like to assign a group on the form where a user registers. > > > For example: > > Student group > > Teacher group > > Admin group > > Finance group > > > How do I create different registration forms for each user group, so > > that the users sign themselves up and are assigned the specific > > group? > > > I'm thinking that this should be quite easily done in web2py, but I > > couldn't find the answer it the book. > > I was looking for the answer in Access Control > > (http://web2py.com/book/default/chapter/08 > > ). > > > Thanks!

