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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-01-13 01:36:15 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1123
Merge setup-refactor branch. This completely breaks existing installations;
every path (both filesystem and Python) has changed. Do not upgrade without
knowing what you are doing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
import cgi
27
27
 
28
 
from common import (util, caps)
29
 
import common.db
 
28
from ivle import (util, caps)
 
29
import ivle.db
30
30
 
31
31
def handle(req):
32
32
    # Set request attributes
41
41
 
42
42
    req.write('<div id="ivle_padding">\n')
43
43
    # Show a group panel per enrolment
44
 
    db = common.db.DB()
 
44
    db = ivle.db.DB()
45
45
    try:
46
46
        subjects = db.get_enrolment(req.user.login)
47
47
        # Sort by year,semester,subj_code (newer subjects first)