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

« back to all changes in this revision

Viewing changes to ivle/database.py

  • Committer: William Grant
  • Date: 2009-01-20 02:03:32 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: grantw@unimelb.edu.au-20090120020332-oi1xk22zpb0iodfz
ivle.database.Offering: Add a members ReferenceSet.
www/apps/userservice: Replace get_{projectgroup,offering}_members calls with
    Storm ones, constructing the dict-lists manually as usual.
ivle.db.get_{offering,projectgroup}_members: Kill. Unused.

Show diffs side-by-side

added added

removed removed

Lines of Context:
240
240
    groups_student_permissions = Unicode()
241
241
 
242
242
    enrolments = ReferenceSet(id, 'Enrolment.offering_id')
 
243
    members = ReferenceSet(id,
 
244
                           'Enrolment.offering_id',
 
245
                           'Enrolment.user_id',
 
246
                           'User.id')
243
247
    project_sets = ReferenceSet(id, 'ProjectSet.offering_id')
244
248
 
245
249
    __init__ = _kwarg_init