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

« back to all changes in this revision

Viewing changes to bin/ivle-enrol

  • Committer: William Grant
  • Date: 2009-02-25 01:18:09 UTC
  • Revision ID: grantw@unimelb.edu.au-20090225011809-tshsnb9ke6m6bnwq
Replace Semester.active with Semester.state, allowing more useful state
information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
if not offering:
53
53
    die("subject offering not found")
54
54
 
55
 
if not offering.semester.active:
56
 
    die("cannot enrol - semester inactive")
57
 
    
58
55
try:
59
56
    offering.enrol(user)
60
57
except AlreadyEnrolledError: