~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-07-05 10:27:02 UTC
  • mto: (1294.4.2 ui-the-third)
  • mto: This revision was merged to the branch mainline in revision 1353.
  • Revision ID: grantw@unimelb.edu.au-20090705102702-7yry19rhnk9u0qyv
Add exercise/worksheet breadcrumbs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
            ExerciseAttempts, worksheetexercise_to_exerciseattempts,
56
56
            exerciseattempts_url, exerciseattempts_to_attempt,
57
57
            exerciseattempt_url)
 
58
from ivle.webapp.tutorial.breadcrumbs import (ExerciseBreadcrumb,
 
59
            WorksheetBreadcrumb)
58
60
 
59
61
class Worksheet:
60
62
    """This class represents a worksheet and a particular students progress
503
505
    reverse_routes = (exercise_url, worksheet_url, worksheetexercise_url,
504
506
        exerciseattempts_url, exerciseattempt_url)
505
507
 
 
508
    breadcrumbs = {Exercise: ExerciseBreadcrumb,
 
509
                   DBWorksheet: WorksheetBreadcrumb
 
510
                  }
 
511
 
506
512
    views = [(Offering, ('+worksheets', '+index'), OfferingView),
507
513
             (Offering, ('+worksheets', '+new'), WorksheetAddView),
508
514
             (Offering, ('+worksheets', '+edit'), WorksheetsEditView),