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

« back to all changes in this revision

Viewing changes to ivle/database.py

  • Committer: William Grant
  • Date: 2009-04-07 03:44:43 UTC
  • mto: This revision was merged to the branch mainline in revision 1174.
  • Revision ID: grantw@unimelb.edu.au-20090407034443-bufdocgp29glaei5
Respect the new max_students_per_group semantics in Python.

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
        '''
205
205
        return Store.of(self).find(Project,
206
206
            Project.project_set_id == ProjectSet.id,
207
 
            ProjectSet.max_students_per_group == 0,
 
207
            ProjectSet.max_students_per_group == None,
208
208
            ProjectSet.offering_id == Offering.id,
209
209
            (offering is None) or (Offering.id == offering.id),
210
210
            Semester.id == Offering.semester_id,
481
481
        return Store.of(self).find(Project,
482
482
            Project.project_set_id == ProjectSet.id,
483
483
            ProjectSet.id == self.project_set.id,
484
 
            ProjectSet.max_students_per_group > 0,
 
484
            ProjectSet.max_students_per_group != None,
485
485
            ProjectSet.offering_id == Offering.id,
486
486
            (offering is None) or (Offering.id == offering.id),
487
487
            Semester.id == Offering.semester_id,