~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/auth/guest_auth.py

  • Committer: Matt Giuca
  • Date: 2009-01-19 17:06:24 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: matt.giuca@gmail.com-20090119170624-3bowlh5rs7lf7eqz
ivle.worksheet: Added get_exercise_attempts and get_exercise_attempt.
tutorialservice: Updated to use these new functions rather than ivle.db. Also
    uses datetime and does its own dictionarification rather than relying on
    ivle.db to do it.
    NOTE: This is just for the above two functions, not the whole module
    (still reliant on ivle.db).
ivle.db: Removed get_problem_attempts and get_problem_attempt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
from ivle.auth import AuthError
34
34
from ivle.database import User
 
35
from ivle.caps import Role
35
36
 
36
37
# XXX: What to put here
37
38
GUEST_UID = 4000
51
52
 
52
53
    # Create a guest user
53
54
    return User(login=u"guest", fullname=u"Guest Account", nick=u"Guest",
54
 
        state=u"no_agreement", unixid=GUEST_UID)
 
55
        role=Role.ANYONE, state=u"no_agreement", unixid=GUEST_UID)