- Timestamp:
- 13 Nov 2014, 13:21:59 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-regista/src/waeup/kofa/browser/breadcrumbs.py
r10655 r11947 28 28 from waeup.kofa.browser.interfaces import ( 29 29 IBreadcrumb, IBreadcrumbIgnorable, IBreadcrumbContainer, IKofaObject, 30 IUniversity, IFacultiesContainer, IUsersContainer, IDataCenter, IFaculty, 31 IDepartment, ICourse, ICertificate, ICoursesContainer, ICertificateCourse, 32 ICertificatesContainer 30 IUniversity, IUsersContainer, IDataCenter, 33 31 ) 34 32 from waeup.kofa.reports import IReportsContainer … … 114 112 return (self.context, 'administration') 115 113 116 class FacultiesContainerBreadcrumb(Breadcrumb):117 """A breadcrumb for faculty containers.118 """119 grok.context(IFacultiesContainer)120 title = _(u'Academics')121 122 114 class AdministrationBreadcrumb(Breadcrumb): 123 115 """A breadcrumb for administration areas of University instances. … … 174 166 title = _(u'Student Data Exports') 175 167 target = None 176 177 class FacultyBreadcrumb(Breadcrumb):178 """A breadcrumb for faculties.179 """180 grok.context(IFaculty)181 182 @property183 def title(self):184 return self.context.longtitle185 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 @property218 def title(self):219 return self.context.longtitle220 168 221 169 def getBreadcrumb(obj, viewname=None):
Note: See TracChangeset for help on using the changeset viewer.