~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-27 03:55:15 UTC
  • Revision ID: grantw@unimelb.edu.au-20090227035515-u5nwfrbed8qu9sbl
Offerings now give 'view' only to user enrolled in them. 'edit' is granted
to their tutors and lecturers.

Worksheet(Exercise)s and their views now delegate to and use Offering's
permissions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
from ivle.webapp.errors import NotFound, Forbidden
47
47
from ivle.webapp.tutorial.rst import rst as rstfunc
48
48
from ivle.webapp.tutorial.service import AttemptsRESTView, AttemptRESTView, \
49
 
                      ExerciseRESTView, WorksheetRESTView, WorksheetsRESTView
 
49
             WorksheetExerciseRESTView, WorksheetRESTView, WorksheetsRESTView
50
50
 
51
51
class Worksheet:
52
52
    """This class represents a worksheet and a particular students progress
506
506
        ('api/subjects/:subject/:year/:semester/+worksheets/:worksheet/*exercise/'
507
507
                '+attempts/:username/:date', AttemptRESTView),
508
508
        ('api/subjects/:subject/:year/:semester/+worksheets/:worksheet', WorksheetRESTView),
509
 
        ('api/subjects/:subject/:year/:semester/+worksheets/:worksheet/*exercise', ExerciseRESTView),
 
509
        ('api/subjects/:subject/:year/:semester/+worksheets/:worksheet/*exercise', WorksheetExerciseRESTView),
510
510
    ]
511
511
 
512
512
    media = 'media'