Hmmm that's one option, but here's the problem. Basically, I want users to sign up very easily. So I'm just using web2py's default auth for that. Then, I'd like them to pick if they are tutors/students or both. There is additional information they'd have to input in some forms for both roles. While I could just create two groups, the way I have it now as tutors are a table and students are another table in the database.
I guess I'm a bit lost as to how the correct way to let the signed up users be either students/tutors or both is. Should it all be part of the signed up users table? Or should I have three tables? Should I just make groups? Any advice is much appreciated, Thanks! On Friday, November 23, 2012 7:24:42 PM UTC, Joe Barnhart wrote: > > Why not create a group for each class -- tutor and student -- and assign > group membership for each student? A student can participate in more than > one group. It's easy to test for group membership -- just use the > decorator: > > @auth.requires_membership('tutor') > > -- Joe B. > > > On Tuesday, November 20, 2012 5:57:57 PM UTC-8, Daniele wrote: >> >> I am trying to build a model where each logged user can decide if he/she >> is a tutor or student or both. >> So the tutor table has to 'reference auth.settings.table_user_name' and >> student also has to have the same reference. >> >> The tutor/student/logged user have to be related by their id key I >> imagine. >> >> Is this the proper way to go about this? Moreover, how can I check that >> the relationship is working? >> > --