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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/subject.py

  • Committer: William Grant
  • Date: 2010-02-15 08:17:02 UTC
  • Revision ID: grantw@unimelb.edu.au-20100215081702-8e2efije26b852h8
Add routes for Semester. We'll need them for the admin UI.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
from ivle.webapp.admin.projectservice import ProjectSetRESTView
49
49
from ivle.webapp.admin.offeringservice import OfferingRESTView
50
 
from ivle.webapp.admin.publishing import (root_to_subject,
 
50
from ivle.webapp.admin.publishing import (root_to_subject, root_to_semester,
51
51
            subject_to_offering, offering_to_projectset, offering_to_project,
52
 
            subject_url, offering_url, projectset_url, project_url)
 
52
            subject_url, semester_url, offering_url, projectset_url,
 
53
            project_url)
53
54
from ivle.webapp.admin.breadcrumbs import (SubjectBreadcrumb,
54
55
            OfferingBreadcrumb, UserBreadcrumb, ProjectBreadcrumb)
55
56
from ivle.webapp.core import Plugin as CorePlugin
568
569
        ctx['user'] = req.user
569
570
 
570
571
class Plugin(ViewPlugin, MediaPlugin):
571
 
    forward_routes = (root_to_subject, subject_to_offering,
 
572
    forward_routes = (root_to_subject, root_to_semester, subject_to_offering,
572
573
                      offering_to_project, offering_to_projectset)
573
 
    reverse_routes = (subject_url, offering_url, projectset_url, project_url)
 
574
    reverse_routes = (
 
575
        subject_url, semester_url, offering_url, projectset_url, project_url)
574
576
 
575
577
    views = [(ApplicationRoot, ('subjects', '+index'), SubjectsView),
576
578
             (ApplicationRoot, ('subjects', '+new'), SubjectNew),