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

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: dcoles
  • Date: 2008-07-18 02:40:58 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:912
Makeuser: Makeuser will now chown all files in a users home directory to the
unixid provided by the database. This means remakeallusers.py can be used to
update everyones unixids after a database change. The makeuser script will also 
no longer generate a random unixid when one is not given on the command line.

Database: Change to database so that a sequence is used by default. The allowed  
range is 1000-29999 (let's start at 5000, because 1000+ is used by adduser.  
Reference: http://www.debian.org/doc/debian-policy/ch-opersys.html)
See SF Bug '[ 2012190 ] Student UID generation'
Migration script will reallocate all users a new unixid from the sequence.

Usermgt-Server: Now no longer generates a random unixid. Rely on the database 
to come up with a new sequence number.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
# This is a command-line application, for use by the administrator.
24
24
# This program is a frontend for the modules in the setup packages that 
25
 
# build and install IVLE in separate steps.
 
25
# configure, build and install IVLE in three separate steps.
26
26
# It is called with at least one argument, which specifies which operation to
27
27
# take.
28
28
 
29
29
import sys
 
30
import setup.configure
30
31
import setup.build
31
32
import setup.install
 
33
import setup.listmake
 
34
 
32
35
 
33
36
def main(argv=None):
34
37
    if argv is None:
37
40
    # Print the opening spiel including the GPL notice
38
41
 
39
42
    print """IVLE - Informatics Virtual Learning Environment Setup
40
 
Copyright (C) 2007-2009 The University of Melbourne
 
43
Copyright (C) 2007-2008 The University of Melbourne
41
44
IVLE comes with ABSOLUTELY NO WARRANTY.
42
45
This is free software, and you are welcome to redistribute it
43
46
under certain conditions. See LICENSE.txt for details.
59
62
def help(args):
60
63
    if len(args)!=1:
61
64
        print """Usage: python setup.py operation [options]
62
 
Operation can be:
 
65
Operation (and options) can be:
63
66
    help [operation]
 
67
    listmake (developer use only)
 
68
    config [args]
64
69
    build
65
 
    install
 
70
    install [--nojail] [--nosubjects] [-n|--dry]
66
71
 
67
 
    For help and options for a specific operation use 'help [operation]'."""
 
72
    For help on a specific operation use 'help [operation]'."""
68
73
    else:
69
74
        operator = args[0]
70
75
        oper_func = call_operator(operator)
75
80
    try:
76
81
        oper_func = {
77
82
            'help' : help,
 
83
            'config' : setup.configure.configure,
78
84
            'build' : setup.build.build,
 
85
            'listmake' : setup.listmake.listmake,
79
86
            'install' : setup.install.install,
 
87
            #'updatejails' : None,
80
88
        }[operation]
81
89
    except KeyError:
82
90
        print >>sys.stderr, (