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

« back to all changes in this revision

Viewing changes to ivle/webapp/userservice/__init__.py

  • 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:
476
476
                              'subj_name': offering.subject.name,
477
477
                              'year': offering.semester.year,
478
478
                              'semester': offering.semester.semester,
479
 
                              'active': offering.semester.active
 
479
                              'active': True # XXX: Eliminate from protocol.
480
480
                             } for offering in subject.offerings
481
 
                                    if offering.semester.active])
 
481
                                    if offering.semester.state == 'current'])
482
482
    req.content_type = "text/plain"
483
483
    req.write(response)
484
484