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

« back to all changes in this revision

Viewing changes to listusers.py

  • Committer: stevenbird
  • Date: 2008-02-19 21:17:21 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:512
Renaming of problems to exercises (initial commit).
Fix up module naming (exercises sometimes called tutorials).

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:
38
38
    print "Error: " + str(message)
39
39
    sys.exit(1)
40
40
 
 
41
list.sort(key=lambda user: user.login)
41
42
for user in list:
42
 
    print repr((user['login'], user['unixid'], user['nick'], user['fullname'],
43
 
        user['rolenm'], user['studentid']))
 
43
    print repr(user)