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

« back to all changes in this revision

Viewing changes to www/apps/userservice/__init__.py

  • Committer: William Grant
  • Date: 2009-01-20 02:49:22 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: grantw@unimelb.edu.au-20090120024922-6eb86loc19qwcldh
ivle.database.Enrolment: Add a groups attribute, containing groups of which
    this user is a member in this offering.
www/apps/userservice: Use Storm instead of get_enrolment_groups.
ivle.db.get_enrolment_groups: Kill. Unused.

Show diffs side-by-side

added added

removed removed

Lines of Context:
465
465
            'url':             e.offering.subject.url,
466
466
            'year':            e.offering.semester.year,
467
467
            'semester':        e.offering.semester.semester,
468
 
            'groups':          db.get_enrolment_groups(user.login,
469
 
                                        e.offering.id),
 
468
            'groups':          [{'name': group.name,
 
469
                                 'nick': group.nick} for group in e.groups]
470
470
        })
471
471
    db.close()
472
472
    response = cjson.encode(dict_enrolments)