Hello, I'm new to web2py (I know django) and I decided to give a try.
I bought the book, but I don't find detailled documentation about
auth. I want to create several apps (for a classroom organization)
sharing the same users, but with different profiles, for example
teachers, students, visitors... So, I'd like to define an app
dedicated to take care of users and their roles. I want a basic auth
with only Name, Forename, loginname, password and no email. The reason
for this is that I need to populate the database from files of student
names, give them initial password and after they will complete their
profile with their email, picture and different information that I
want to store in a separate profile table. Teachers may not give an
email and will have a different profile as well as other categories of
users. I tried

auth.settings.table_user = db.define_table(
    auth.settings.table_user_name,
    db.Field('Prenom', length=128, default=''),
    db.Field('Nom', length=128, default=''),
    db.Field('password', 'password', readable=False, label='Mot de
Passe', requires=CRYPT()),
    )

but    return dict(form=auth()) does not work without email.
I will use pyjamas with jsonrpc for login so I can bypass crud. Is it
possible to take advantage of auth decorators,
groups, permissions...with these requirements ? If so, how to write
such a controller ?
Thanks, Alan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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