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

« back to all changes in this revision

Viewing changes to bin/ivle-remakeuser

  • Committer: Matt Giuca
  • Date: 2009-04-22 04:56:58 UTC
  • Revision ID: matt.giuca@gmail.com-20090422045658-nnfepg0902n3mwtq
ivle.makeuser: Fixed odd code which would create the home directory, then
    immediately clobber it by restoring the backup.
    This broke in Python 2.6 because the behaviour of shutil.move changed.
    (Commented).

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
 
store = ivle.database.get_store(ivle.config.Config())
 
51
store = ivle.database.get_store()
53
52
 
54
53
if options.all:
55
54
    users = store.find(ivle.database.User).order_by(ivle.database.User.login)