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

« back to all changes in this revision

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

Began moving tutorialservice over to webapp.

Note that this breaks worksheets for the time being

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
from ivle.webapp.base.plugins import BasePlugin
43
43
from ivle.webapp.errors import NotFound, Forbidden
44
44
from ivle.webapp.tutorial.rst import rst
 
45
from ivle.webapp.tutorial.service import AttemptsRESTView, \
 
46
                                        AttemptRESTView, ExerciseRESTView
45
47
 
46
48
# Regex for valid identifiers (subject/worksheet names)
47
49
re_ident = re.compile("[0-9A-Za-z_]+")
468
470
        ('subjects/:subject/+worksheets', SubjectView),
469
471
        ('subjects/:subject/+worksheets/+media/*(path)', SubjectMediaView),
470
472
        ('subjects/:subject/+worksheets/:worksheet', WorksheetView),
 
473
        ('api/subjects/:subject/+worksheets/:worksheet/*exercise/'
 
474
            '+attempts/:username', AttemptsRESTView),
 
475
        ('api/subjects/:subject/+worksheets/:worksheet/:exercise/'
 
476
                '+attempts/:username/:date', AttemptRESTView),
 
477
        ('api/subjects/:subject/+worksheets/:worksheet/:exercise', ExerciseRESTView),
471
478
    ]