Ignore:
Timestamp:
30 Nov 2017, 07:44:55 (7 years ago)
Author:
Henrik Bettermann
Message:

GPABoundaries may also depend on certcode.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r14914 r14915  
    66
    77* Replace `gpa_boundaries` utility attribute by `GPABoundaries` method
    8   which may return different values in custom packages depending on faculty
    9   or department code (requested by AAU Ekpoma).
     8  which may return different values in custom packages depending on faculty,
     9  department or certificate code (requested by AAU Ekpoma).
    1010
    1111* Allow `ApplicantOnlinePaymentProcessor` to import records without
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/session_results_presentation.py

    r14914 r14915  
    214214            pdf_data.append(Spacer(1, 20))
    215215            gpa_class_name = students_utils.GPABoundaries(
    216                 faccode=self.faccode, depcode=self.depcode)[gpa_class][1]
     216                faccode=self.faccode, depcode=self.depcode,
     217                certcode=self.certcode)[gpa_class][1]
    217218            pdf_data += [Paragraph('<strong>%s</strong>' % gpa_class_name,
    218219                         STYLE["Normal"])]
     
    241242        for gpa_class in range(len(students_utils.GPABoundaries())-1,-1,-1):
    242243            gpa_class_name = students_utils.GPABoundaries(
    243                 faccode=self.faccode, depcode=self.depcode)[gpa_class][1]
     244                faccode=self.faccode, depcode=self.depcode,
     245                certcode=self.certcode)[gpa_class][1]
    244246            gpa_count = len(self.data[gpa_class])
    245247            total_count += gpa_count
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r14914 r14915  
    817817        return pdf_stream
    818818
    819     def GPABoundaries(self, faccode=None, depcode=None):
     819    def GPABoundaries(self, faccode=None, depcode=None, certcode=None):
    820820        return ((1, 'Fail'),
    821821               (1.5, 'Pass'),
Note: See TracChangeset for help on using the changeset viewer.