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

« back to all changes in this revision

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

Moved the tutorial templates in a new directory to keep tutorial cleaner

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
class OfferingView(XHTMLView):
70
70
    '''The view of the index of worksheets for an offering.'''
71
 
    template = 'subjectmenu.html'
 
71
    template = 'templates/subjectmenu.html'
72
72
    appname = 'tutorial' # XXX
73
73
    permission = 'view'
74
74
 
145
145
 
146
146
class WorksheetView(XHTMLView):
147
147
    '''The view of a worksheet with exercises.'''
148
 
    template = 'worksheet.html'
 
148
    template = 'templates/worksheet.html'
149
149
    appname = 'tutorial' # XXX
150
150
    permission = 'view'
151
151
 
383
383
    This view is designed to replace worksheets.xml, turning them instead
384
384
    into XML directly from RST."""
385
385
    permission = "edit"
386
 
    template = "worksheet_edit.html"
 
386
    template = "templates/worksheet_edit.html"
387
387
    appname = "Edit Worksheet"
388
388
 
389
389
    def __init__(self, req, **kwargs):
425
425
class WorksheetAddView(XHTMLView):
426
426
    """This view allows a user to add a worksheet"""
427
427
    permission = "edit"
428
 
    template = "worksheet_add.html"
 
428
    template = "templates/worksheet_add.html"
429
429
    appname = "Add Worksheet"
430
430
 
431
431
    def __init__(self, req, subject, year, semester):