Changeset 6776 for main


Ignore:
Timestamp:
15 Sep 2011, 10:54:26 (13 years ago)
Author:
Henrik Bettermann
Message:

Add study level breadcrumb.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r6775 r6776  
    9898    grok.context(IStudentAccommodation)
    9999    title = u'Accommodation'
     100
     101class StudyLevelBreadcrumb(Breadcrumb):
     102    """A breadcrumb for course lists.
     103    """
     104    grok.context(IStudentStudyLevel)
     105
     106    @property
     107    def title(self):
     108        return self.context.level_title
    100109
    101110class StudentsContainerPage(WAeUPPage):
     
    544553    @property
    545554    def label(self):
    546         return '%s: Study Level %s' % (self.context.__parent__.name,self.context.level_title)
     555        return '%s: Study Level %s' % (
     556            self.context.getStudent().name,self.context.level_title)
    547557
    548558class PaymentsDisplayFormPage(WAeUPDisplayFormPage):
Note: See TracChangeset for help on using the changeset viewer.