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

« back to all changes in this revision

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

  • Committer: Nick Chadwick
  • Date: 2009-02-24 14:32:55 UTC
  • mto: (1099.1.227 exercise-ui)
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090224143255-eflrd17t4k8p5s85
Started adding in add and save options in the exercise edit view, to
start supporting full modification of exercises through the browser.

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
from ivle.webapp.tutorial.exercise_service import ExercisesRESTView, \
 
51
                                                  ExerciseRESTView
50
52
 
51
53
class Worksheet:
52
54
    """This class represents a worksheet and a particular students progress
533
535
        ('api/subjects/:subject/:year/:semester/+worksheets/:worksheet/*exercise/'
534
536
                '+attempts/:username/:date', AttemptRESTView),
535
537
        ('api/subjects/:subject/:year/:semester/+worksheets/:worksheet', WorksheetRESTView),
536
 
        ('api/subjects/:subject/:year/:semester/+worksheets/:worksheet/*exercise', ExerciseRESTView),
 
538
        ('api/subjects/:subject/:year/:semester/+worksheets/:worksheet/*exercise', WorksheetExerciseRESTView),
537
539
        
538
540
        # Exercise View Urls
539
541
        ('+exercises/:exercise/+edit', ExerciseEditView),
540
542
        
541
543
        # Exercise Api Urls
 
544
        ('api/+exercises', ExercisesRESTView),
 
545
        ('api/+exercises/*exercise/+edit', ExerciseRESTView),
542
546
    ]
543
547
 
544
548
    media = 'media'