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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-12-09 23:54:37 UTC
  • mto: This revision was merged to the branch mainline in revision 1397.
  • Revision ID: grantw@unimelb.edu.au-20091209235437-9wfhs76cu90l1e8r
Only show exercise save/reset buttons if we are in a worksheet, as otherwise we can store no state.

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
    # Exercise-specific context is used here, as we already have all the data
281
281
    # we need
282
282
    curctx = genshi.template.Context()
 
283
    curctx['worksheet'] = worksheet
283
284
 
284
285
    if worksheet is not None:
285
286
        worksheet_exercise = req.store.find(WorksheetExercise,