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

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/__init__.py

  • Committer: William Grant
  • Date: 2009-02-25 08:21:38 UTC
  • Revision ID: grantw@unimelb.edu.au-20090225082138-9xjes8motif205xw
Move the old tutorial views into the 'subjects' tab, so they get the right
icon and highlight the right tab.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
class OfferingView(XHTMLView):
70
70
    '''The view of the index of worksheets for an offering.'''
71
71
    template = 'templates/subjectmenu.html'
72
 
    appname = 'tutorial' # XXX
 
72
    tab = 'subjects' # XXX
73
73
    permission = 'view'
74
74
 
75
75
    def __init__(self, req, subject, year, semester):
146
146
class WorksheetView(XHTMLView):
147
147
    '''The view of a worksheet with exercises.'''
148
148
    template = 'templates/worksheet.html'
149
 
    appname = 'tutorial' # XXX
 
149
    tab = 'subjects'
150
150
    permission = 'view'
151
151
 
152
152
    def __init__(self, req, subject, year, semester, worksheet):
384
384
    into XML directly from RST."""
385
385
    permission = "edit"
386
386
    template = "templates/worksheet_edit.html"
387
 
    appname = "Edit Worksheet"
 
387
    tab = "subjects"
388
388
 
389
389
    def __init__(self, req, **kwargs):
390
390