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

« back to all changes in this revision

Viewing changes to www/apps/subjects/__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:
26
26
import urllib
27
27
import cgi
28
28
 
29
 
from common import util
30
 
import common.db
 
29
from ivle import util
 
30
import ivle.db
31
31
 
32
32
def handle(req):
33
33
    """Handler for the Subjects application. Links to subject home pages."""
45
45
        req.throw_redirect(req.uri + '/')
46
46
 
47
47
    (enrolled_subjects, unenrolled_subjects) = \
48
 
              common.db.DB().get_subjects_status(req.user.login)
 
48
              ivle.db.DB().get_subjects_status(req.user.login)
49
49
 
50
50
    def print_subject(subject):
51
51
        if subject['url'] is None: