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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/breadcrumbs.py

  • Committer: Matt Giuca
  • Date: 2010-02-24 13:13:21 UTC
  • mfrom: (1689.1.19 worksheet-marks)
  • Revision ID: matt.giuca@gmail.com-20100224131321-eno7xbrqsyukz869
Added worksheet marks reporting UI for lecturers. This includes the ability to view worksheet marks table in the web application and download as a CSV, as well as some basic statistics on exercise completion. Removed the ivle-marks script, as now lecturers can get the same data themselves. Fixes Launchpad bug #520179.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
 
94
94
 
95
95
class ProjectsBreadcrumb(object):
96
 
    """Static 'Projects' breadcrumb to precede ProjectBreadcrumb.
97
 
    context must be a ProjectSet.
98
 
    """
 
96
    """Static 'Projects' breadcrumb to precede ProjectBreadcrumb."""
99
97
    def __init__(self, req, context):
100
98
        self.req = req
101
99
        self.context = context
102
100
 
103
101
    @property
104
102
    def url(self):
105
 
        return self.req.publisher.generate(self.context.offering, None,
106
 
                                           '+projects')
 
103
        return self.req.publisher.generate(self.context, None, '+projects')
107
104
 
108
105
    @property
109
106
    def text(self):
125
122
 
126
123
    @property
127
124
    def extra_breadcrumbs_before(self):
128
 
        return [ProjectsBreadcrumb(self.req, self.context.project_set)]
 
125
        return [ProjectsBreadcrumb(self.req, self.context.project_set.offering)]
129
126
 
130
127
 
131
128
class EnrolmentsBreadcrumb(object):