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

« back to all changes in this revision

Viewing changes to bin/ivle-makeuser

  • Committer: Matt Giuca
  • Date: 2009-02-24 05:59:10 UTC
  • mto: This revision was merged to the branch mainline in revision 1119.
  • Revision ID: matt.giuca@gmail.com-20090224055910-gevty3r7urdsq4zw
File browser: Re-styled the path area, now has a yellow 3D-looking gradient
    thing.
    Added image-source/filepathbar-bg.svg, and corresponding png.
    Changed filesystem/browser/media/browser.css to the new style.
    (Note: This breaks the two bars below it; that's OK, we're about to
    restyle them too).
Removed redundant span from filesystem/browser/template.html.

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)