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

« back to all changes in this revision

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

Fix some issues with undefined variables in view template contexts. Genshi 0.5
is much less lenient.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    template = 'subjects.html'
39
39
    appname = 'subjects' # XXX
40
40
 
41
 
    def authorize(self, req):
42
 
        return req.user is not None
43
 
 
44
41
    def populate(self, req, ctx):
45
42
        enrolled_subjects = req.user.subjects
46
43
        unenrolled_subjects = [subject for subject in