Ignore:
Timestamp:
13 Nov 2014, 13:21:59 (10 years ago)
Author:
Henrik Bettermann
Message:

Enucleation. Keep only the portal's framework. Remove university, students, applicants, hostels and accesscodes modules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/henrik-regista/src/waeup/kofa/browser/breadcrumbs.py

    r10655 r11947  
    2828from waeup.kofa.browser.interfaces import (
    2929    IBreadcrumb, IBreadcrumbIgnorable, IBreadcrumbContainer, IKofaObject,
    30     IUniversity, IFacultiesContainer, IUsersContainer, IDataCenter, IFaculty,
    31     IDepartment, ICourse, ICertificate, ICoursesContainer, ICertificateCourse,
    32     ICertificatesContainer
     30    IUniversity, IUsersContainer, IDataCenter,
    3331    )
    3432from waeup.kofa.reports import IReportsContainer
     
    114112        return (self.context, 'administration')
    115113
    116 class FacultiesContainerBreadcrumb(Breadcrumb):
    117     """A breadcrumb for faculty containers.
    118     """
    119     grok.context(IFacultiesContainer)
    120     title = _(u'Academics')
    121 
    122114class AdministrationBreadcrumb(Breadcrumb):
    123115    """A breadcrumb for administration areas of University instances.
     
    174166    title = _(u'Student Data Exports')
    175167    target = None
    176 
    177 class FacultyBreadcrumb(Breadcrumb):
    178     """A breadcrumb for faculties.
    179     """
    180     grok.context(IFaculty)
    181 
    182     @property
    183     def title(self):
    184         return self.context.longtitle
    185 
    186 class DepartmentBreadcrumb(FacultyBreadcrumb):
    187     """A breadcrumb for departments.
    188     """
    189     grok.context(IDepartment)
    190 
    191 class CourseBreadcrumb(FacultyBreadcrumb):
    192     """A breadcrumb for courses.
    193     """
    194     grok.context(ICourse)
    195 
    196 class CertificateBreadcrumb(FacultyBreadcrumb):
    197     """A breadcrumb for certificates.
    198     """
    199     grok.context(ICertificate)
    200 
    201 class CoursesContainerBreadcrumb(Breadcrumb):
    202     """ We don't want course container breadcrumbs.
    203     """
    204     grok.context(ICoursesContainer)
    205     grok.implements(IBreadcrumbIgnorable)
    206 
    207 class CertificatesContainerBreadcrumb(Breadcrumb):
    208     """ We don't want course container breadcrumbs.
    209     """
    210     grok.context(ICertificatesContainer)
    211     grok.implements(IBreadcrumbIgnorable)
    212 
    213 class CertificateCourseBreadcrumb(Breadcrumb):
    214     """ We don't want course container breadcrumbs.
    215     """
    216     grok.context(ICertificateCourse)
    217     @property
    218     def title(self):
    219         return self.context.longtitle
    220168
    221169def getBreadcrumb(obj, viewname=None):
Note: See TracChangeset for help on using the changeset viewer.