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

« back to all changes in this revision

Viewing changes to listusers.py

  • Committer: mattgiuca
  • Date: 2008-02-14 00:50:38 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:451
Updated common/db.py and listusers to deal with the new "state" column in the
login table. When creating a new user, state is always set to "no_agreement";
there is no argument for it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
import common.db
29
29
 
30
30
if os.getuid() != 0:
31
 
    print "Must run makeuser.py as root."
 
31
    print "Must run listusers.py as root."
32
32
    sys.exit()
33
33
 
34
34
try:
39
39
    sys.exit(1)
40
40
 
41
41
for user in list:
42
 
    print repr((user['login'], user['unixid'], user['nick'], user['fullname'],
43
 
        user['rolenm'], user['studentid']))
 
42
    print repr((user['login'], user['state'], user['unixid'], user['nick'],
 
43
        user['fullname'], user['rolenm'], user['studentid']))