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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-07-04 23:58:25 UTC
  • mto: (1294.4.2 ui-the-third)
  • mto: This revision was merged to the branch mainline in revision 1353.
  • Revision ID: grantw@unimelb.edu.au-20090704235825-2z5i3qkwj1gc7v7b
Port tutorial stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
class ExerciseRESTView(JSONRESTView):
63
63
    """View for updating Exercises"""
64
64
    
65
 
    def __init__(self, req, exercise):
66
 
        
67
 
        self.context = req.store.find(Exercise,
68
 
            Exercise.id == exercise).one()
69
 
        
70
 
        if self.context is None:
71
 
            raise NotFound()
72
 
 
73
65
    @named_operation(u'edit')
74
66
    def edit_exercise(self, req, name, description, partial, 
75
67
                      solution, include, num_rows):