Ignore:
Timestamp:
26 Jan 2013, 07:58:03 (12 years ago)
Author:
Henrik Bettermann
Message:

Two modifications which become necessary for the next waeup.aaue upgrade.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py

    r9812 r9912  
    2424from zope.component import createObject
    2525from zope.interface import implementedBy
     26from waeup.kofa.interfaces import academic_sessions_vocab
    2627from waeup.kofa.students.interfaces import (
    2728    IStudentStudyLevel, IStudentNavigation, ICourseTicket)
     
    8182
    8283    @property
     84    def getSessionString(self):
     85        return academic_sessions_vocab.getTerm(
     86            self.level_session).title
     87
     88    @property
    8389    def gpa(self):
    8490        gpa = 0.0
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r9911 r9912  
    560560        author = '%s (%s)' % (view.request.principal.title,
    561561                              view.request.principal.id)
    562         footer_text = view.label
     562        footer_text = view.label.split('\n')[0]
    563563        if getattr(student, 'student_id', None) is not None:
    564564            footer_text = "%s - %s - " % (student.student_id, footer_text)
Note: See TracChangeset for help on using the changeset viewer.