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

« back to all changes in this revision

Viewing changes to bin/ivle-makeuser

  • Committer: William Grant
  • Date: 2009-02-23 23:47:02 UTC
  • mfrom: (1099.1.211 new-dispatch)
  • Revision ID: grantw@unimelb.edu.au-20090223234702-db4b1llly46ignwo
Merge from lp:~ivle-dev/ivle/new-dispatch.

Pretty much everything changes. Reread the setup docs. Backup your databases.
Every file is now in a different installed location, the configuration system
is rewritten, the dispatch system is rewritten, URLs are different, the
database is different, worksheets and exercises are no longer on the
filesystem, we use a templating engine, jail service protocols are rewritten,
we don't repeat ourselves, we have authorization rewritten, phpBB is gone,
and probably lots of other things that I cannot remember.

This is certainly the biggest commit I have ever made, and hopefully
the largest I ever will.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
import os
32
32
import getopt
33
33
 
 
34
if os.getuid() != 0:
 
35
    print "Must run %s as root." % os.path.basename(sys.argv[0])
 
36
    sys.exit(1)
 
37
 
34
38
from ivle.database import get_store, User
35
39
from ivle.pulldown_subj import enrol_user
36
40
 
55
59
        print t + (' ' * max(28 - len(t), 2)) + desc
56
60
    sys.exit(1)
57
61
 
58
 
if os.getuid() != 0:
59
 
    print "Must run %s as root." % os.path.basename(sys.argv[0])
60
 
    sys.exit(1)
61
 
 
62
62
shorts = ''.join([o[0] + ":" for o in optionals])
63
63
longs = [o[1] + "=" for o in optionals]
64
64
opts, args = getopt.gnu_getopt(sys.argv[1:], shorts, longs)