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

« back to all changes in this revision

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

ivle.webapp.tutorial#present_exericse: Use the new template path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
412
412
    #Save the exercise details to the Table of Contents
413
413
 
414
414
    loader = genshi.template.TemplateLoader(".", auto_reload=True)
415
 
    tmpl = loader.load(util.make_local_path("apps/tutorial/exercise.html"))
 
415
    tmpl = loader.load(os.path.join(os.path.dirname(__file__), "exercise.html"))
416
416
    ex_stream = tmpl.generate(curctx)
417
417
    return {'name': curctx['exercisename'], 'complete': curctx['complete'], \
418
418
              'stream': ex_stream, 'exid': exerciseid}