~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:
30
30
import setup.configure
31
31
import setup.build
32
32
import setup.install
 
33
import setup.listmake
33
34
 
34
35
 
35
36
def main(argv=None):
39
40
    # Print the opening spiel including the GPL notice
40
41
 
41
42
    print """IVLE - Informatics Virtual Learning Environment Setup
42
 
Copyright (C) 2007-2009 The University of Melbourne
 
43
Copyright (C) 2007-2008 The University of Melbourne
43
44
IVLE comes with ABSOLUTELY NO WARRANTY.
44
45
This is free software, and you are welcome to redistribute it
45
46
under certain conditions. See LICENSE.txt for details.
61
62
def help(args):
62
63
    if len(args)!=1:
63
64
        print """Usage: python setup.py operation [options]
64
 
Operation can be:
 
65
Operation (and options) can be:
65
66
    help [operation]
66
 
    config
 
67
    listmake (developer use only)
 
68
    config [args]
67
69
    build
68
 
    install
 
70
    install [--nojail] [--nosubjects] [-n|--dry]
69
71
 
70
 
    For help and options for a specific operation use 'help [operation]'."""
 
72
    For help on a specific operation use 'help [operation]'."""
71
73
    else:
72
74
        operator = args[0]
73
75
        oper_func = call_operator(operator)
80
82
            'help' : help,
81
83
            'config' : setup.configure.configure,
82
84
            'build' : setup.build.build,
 
85
            'listmake' : setup.listmake.listmake,
83
86
            'install' : setup.install.install,
84
87
            #'updatejails' : None,
85
88
        }[operation]