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

« back to all changes in this revision

Viewing changes to bin/ivle-listusers

  • 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:
27
27
import os
28
28
import getopt
29
29
 
30
 
import ivle.config
31
30
import ivle.database
32
31
 
33
32
# Options processing
57
56
    print "Must run listusers.py as root."
58
57
    sys.exit()
59
58
 
60
 
store = ivle.database.get_store(ivle.config.Config())
 
59
store = ivle.database.get_store()
61
60
users = store.find(ivle.database.User).order_by(ivle.database.User.login)
62
61
 
63
62
for user in users: