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

« back to all changes in this revision

Viewing changes to bin/ivle-showenrolment

  • Committer: William Grant
  • Date: 2009-03-26 05:33:03 UTC
  • mto: (1165.3.1 submissions)
  • mto: This revision was merged to the branch mainline in revision 1174.
  • Revision ID: grantw@unimelb.edu.au-20090326053303-t1wsjswhk2sl2gml
Start a submission UI in ivle.webapp.submit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
if user.enrolments.count() > 0:
42
42
    print 'IVLE enrolment for %s (%s):' % (user.login, user.fullname)
43
 
    print '    Code       Name Semester Year'
44
 
    print '-------- ---------- -------- ----'
 
43
    print '    Code       Name Year Semester     Role'
 
44
    print '-------- ---------- ---- -------- --------'
45
45
    for e in user.enrolments:
46
 
        print '%8s %10s %8s %4s' % (
 
46
        print '%8s %10s %4s %8s %8s' % (
47
47
                e.offering.subject.code, e.offering.subject.short_name,
48
 
                e.offering.semester.semester, e.offering.semester.year
 
48
                e.offering.semester.year, e.offering.semester.semester,
 
49
                e.role
49
50
                )
50
51
else:
51
52
    print '%s (%s) is not enrolled in any IVLE offerings' % (