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

« back to all changes in this revision

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

Updated worksheet_edit to correctly set the format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
297
297
    @named_operation('save')
298
298
    def save(self, req, name, assessable, data, format):
299
299
        """Takes worksheet data and saves it."""
300
 
        self.generate_exerciselist(self.context, req, data)
 
300
        generate_exerciselist(self.context, req, data)
301
301
        
302
302
        self.context.name = unicode(name)
303
303
        self.context.assessable = self.convert_bool(assessable)
304
304
        self.context.data = unicode(data)
 
305
        self.context.format = unicode(format)
305
306
        
306
307
        return {"result": "ok"}
307
308