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

« back to all changes in this revision

Viewing changes to bin/ivle-remakeuser

Give console and tutorial services security declarations.

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