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

« back to all changes in this revision

Viewing changes to bin/ivle-remakeuser

  • Committer: William Grant
  • Date: 2009-05-27 04:07:51 UTC
  • Revision ID: grantw@unimelb.edu.au-20090527040751-qwh5kq65wbdfrtsz
Drop ivle.conf usage from ivle.interpret.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
import optparse
30
30
import logging
31
31
 
 
32
import ivle.config
32
33
import ivle.database
33
34
import ivle.makeuser
34
35
 
48
49
                          os.path.basename(sys.argv[0])
49
50
    sys.exit(1)
50
51
 
51
 
store = ivle.database.get_store()
 
52
config = ivle.config.Config()
 
53
store = ivle.database.get_store(config)
52
54
 
53
55
if options.all:
54
56
    users = store.find(ivle.database.User).order_by(ivle.database.User.login)
62
64
 
63
65
for user in users:
64
66
    try:
65
 
        ivle.makeuser.make_jail(user)
 
67
        ivle.makeuser.make_jail(user, config)
66
68
    except Exception, message:
67
69
        logging.warning(str(message))
68
70
        continue