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

« back to all changes in this revision

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

Updated the Worksheets to use a new tutorialservice, hosted in the
new webapps dir.

This now means the worksheets use RESTful calls to the server when
performing their Ajax

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
        worksheetfile = worksheetfile.read()
191
191
 
192
192
        ctx['subject'] = self.subject.code
 
193
        ctx['worksheet'] = self.worksheetname
193
194
        ctx['worksheetstream'] = genshi.Stream(list(genshi.XML(worksheetfile)))
194
195
 
195
196
        #TODO: Replace this with a nice way, possibly a match template
472
473
        ('subjects/:subject/+worksheets/:worksheet', WorksheetView),
473
474
        ('api/subjects/:subject/+worksheets/:worksheet/*exercise/'
474
475
            '+attempts/:username', AttemptsRESTView),
475
 
        ('api/subjects/:subject/+worksheets/:worksheet/:exercise/'
 
476
        ('api/subjects/:subject/+worksheets/:worksheet/*exercise/'
476
477
                '+attempts/:username/:date', AttemptRESTView),
477
 
        ('api/subjects/:subject/+worksheets/:worksheet/:exercise', ExerciseRESTView),
 
478
        ('api/subjects/:subject/+worksheets/:worksheet/*exercise', ExerciseRESTView),
478
479
    ]