Changeset 4732


Ignore:
Timestamp:
8 Jan 2010, 02:53:13 (15 years ago)
Author:
uli
Message:

Add breadcrumb for certificate courses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-layout/src/waeup/browser/breadcrumbs.py

    r4725 r4732  
    123123    grok.implements(IBreadcrumbIgnorable)
    124124
     125class CertificateCourseBreadcrumb(Breadcrumb):
     126    """ We don't want course container breadcrumbs.
     127    """
     128    grok.context(interfaces.ICertificateCourse)
     129    @property
     130    def title(self):
     131        return self.context.course.title
     132
    125133def getBreadcrumb(obj, viewname=None):
    126134    """ Get a breadcrumb for an object and a viewname.
Note: See TracChangeset for help on using the changeset viewer.