Ignore:
Timestamp:
5 Sep 2016, 07:31:37 (8 years ago)
Author:
Henrik Bettermann
Message:

Define getDegreeClass utility method.

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

Legend:

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

    r14133 r14157  
    138138        """
    139139
     140    def getDegreeClass(level_obj):
     141        """Get degree class title (used for SessionResultsPresentation
     142        reports).
     143        """
     144
    140145class IStudentsContainer(IKofaObject):
    141146    """A students container contains university students.
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/session_results_presentation.py

    r14155 r14157  
    8585            table[len(students_utils.gpa_boundaries)].append(line)
    8686            continue
    87         # Session GPA can be determined
    88         #gpaclass = students_utils.getClassFromCGPA(level_obj.gpa)[0]
    89 
    90         # 02/09/16: AAUE requested to use the CGPA
    91         gpaclass = students_utils.getClassFromCGPA(
    92             level_obj.cumulative_params[0])[0]
    93 
     87        gpaclass = students_utils.getDegreeClass(level_obj)
    9488        table[gpaclass].append(line)
    9589    return table
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r14151 r14157  
    826826        return 'N/A'
    827827
     828    def getDegreeClass(self, level_obj):
     829        """Get degree class title (used for SessionResultsPresentation
     830        reports).
     831        """
     832        return self.getClassFromCGPA(level_obj.cumulative_params[0])[0]
     833
    828834    def renderPDFTranscript(self, view, filename='transcript.pdf',
    829835                  student=None,
Note: See TracChangeset for help on using the changeset viewer.