356
356
req.write("<p><b>Exercise:</b> %s</p>\n" % exercisename)
357
357
if exercisedesc is not None:
358
358
req.write("<div>%s</div>\n" % exercisedesc)
361
359
filename = cgi.escape(cjson.encode(exercisesrc), quote=True)
366
% (exerciseid, filename, exerciseid, filename, rows, exercisepartial))
362
367
req.write("""\n<div class="exercisebuttons">
364
370
onclick="saveexercise("exercise%d", %s)"
365
371
title="Save your solution to this exercise" />
366
372
<input type="button" value="Run"