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

« back to all changes in this revision

Viewing changes to bin/ivle-enrolallusers

  • Committer: William Grant
  • Date: 2009-04-28 05:06:00 UTC
  • Revision ID: grantw@unimelb.edu.au-20090428050600-hogd9d6wo7ksyqy8
ivle.database.get_store() now takes a configuration object.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
import optparse
35
35
import logging
36
36
 
 
37
import ivle.config
37
38
import ivle.database
38
39
import ivle.pulldown_subj
39
40
 
54
55
    print >> sys.stderr, "%s must be run as root" % sys.argv[0]
55
56
    sys.exit(1)
56
57
 
57
 
store = ivle.database.get_store()
 
58
store = ivle.database.get_store(ivle.config.Config())
58
59
if options.user is None:
59
60
    users = store.find(ivle.database.User).order_by(ivle.database.User.login)
60
61
else: