~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-28 02:43:56 UTC
  • Revision ID: grantw@unimelb.edu.au-20090528024356-mlrhizz7omnr71hd
Test ivle.mimetypes.nice_filetype.

Show diffs side-by-side

added added

removed removed

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