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

« back to all changes in this revision

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

Cache worksheet and exercise rST-generated XHTML in the DB, accelerating rendering by up to 2000%.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
        new_exercise = Exercise()
61
61
        new_exercise.id = unicode(identifier)
62
62
        new_exercise.name = unicode(name)
63
 
        new_exercise.description = unicode(description)
 
63
        new_exercise.set_description(unicode(description))
64
64
        new_exercise.partial = unicode(partial)
65
65
        new_exercise.solution = unicode(solution)
66
66
        new_exercise.include = unicode(include)
80
80
                      solution, include, num_rows):
81
81
        
82
82
        self.context.name = unicode(name)
83
 
        self.context.description = unicode(description)
 
83
        self.context.set_description(unicode(description))
84
84
        self.context.partial = unicode(partial)
85
85
        self.context.solution = unicode(solution)
86
86
        self.context.include = unicode(include)