auth.settings.register_onaccept = lambda form: auth.add_membership(123, form.vars.id)
where 123 is the id of the group you want. On Friday, 25 December 2015 13:26:38 UTC-6, Alessandro Leonetti wrote: > > Ok Massimo ti ringrazio per i chiarimenti!!!! > Posso chiederti anche un'ultima cosa? > In realtà l'ho risolta già in un modo seguendo un vecchio post di un > utente, ma vorrei se possibile risolverla in modo più pulito. > E' possibile iscrivere l'utente ad un gruppo di Default quando si registra? > Al momento io ho messo un Radio Button che se selezionato dall'utente in > fase di registrazione permette di aggiungere l'utente al gruppo scelto, il > problema è che se non viene selezionato il pulsante l'utente non viene > aggiunto ad alcun gruppo (ho disattivato l'opzione che crea un nuovo gruppo > ad ogni registrazione). > > Ti ringrazio per tutto e ti auguro un Buon Natale!!! > Alessandro > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

