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

« back to all changes in this revision

Viewing changes to listusers.py

  • Committer: stevenbird
  • Date: 2008-02-14 00:18:01 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:447
graphic for user database schema

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 listusers.py as root."
 
31
    print "Must run makeuser.py as root."
32
32
    sys.exit()
33
33
 
34
34
try:
38
38
    print "Error: " + str(message)
39
39
    sys.exit(1)
40
40
 
41
 
list.sort(key=lambda user: user.login)
42
41
for user in list:
43
 
    print repr(user)
 
42
    print repr((user['login'], user['unixid'], user['nick'], user['fullname'],
 
43
        user['rolenm'], user['studentid']))