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

« back to all changes in this revision

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

ivle.webapp.console.service: Port www/apps/consoleservice to new framework.
    consoleservice now lives under /console/service, and actions are taken
    in the "ivle.op" query argument, not as the last segment of the path.
    Otherwise the interface is identical.
www/apps/console/console.js: Update to new consoleservice interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
import urllib
27
27
import cgi
28
28
 
29
 
from ivle.webapp.base.xhtml import XHTMLView
 
29
from ivle.webapp.base.views import XHTMLView
30
30
from ivle.webapp.base.plugins import BasePlugin
31
31
from ivle.webapp.errors import NotFound
32
32
from ivle.database import Subject
35
35
 
36
36
class SubjectsView(XHTMLView):
37
37
    '''The view of the list of subjects.'''
38
 
    template = 'subjects.html'
39
 
    appname = 'subjects' # XXX
 
38
    app_template = 'subjects.html'
 
39
    appname = 'subjects'
40
40
 
41
41
    def populate(self, req, ctx):
42
42
        req.styles = ["media/subjects/subjects.css"]
68
68
 
69
69
class SubjectView(XHTMLView):
70
70
    '''The view of a subject.'''
71
 
    template = 'subject.html'
 
71
    app_template = 'subject.html'
72
72
    appname = 'subjects' # XXX
73
73
 
74
74
    def __init__(self, req, subject, path):