83
83
return self.context.name
86
class EnrolmentsBreadcrumb(object):
87
"""Static 'Enrolments' breadcrumb to precede EnrolmentBreadcrumb."""
88
def __init__(self, req, context):
90
self.context = context
94
return self.req.publisher.generate(self.context, None, '+enrolments')
101
class EnrolmentBreadcrumb(object):
102
def __init__(self, req, context):
104
self.context = context
108
return self.context.user.fullname
111
def extra_breadcrumbs_before(self):
112
return [EnrolmentsBreadcrumb(self.req, self.context.offering)]