398
398
ivle.worksheet.get_exercise_status(req.store, req.user, exercise)
399
399
if saved_text is not None:
400
400
curctx['exercisepartial'] = saved_text.text
406
404
#Save the exercise details to the Table of Contents
408
406
loader = genshi.template.TemplateLoader(".", auto_reload=True)
409
407
tmpl = loader.load(os.path.join(os.path.dirname(__file__), "exercise.html"))
410
408
ex_stream = tmpl.generate(curctx)
415
415
def update_db_worksheet(store, subject, worksheetname, file_mtime,