Changeset 15213


Ignore:
Timestamp:
1 Nov 2018, 08:17:29 (6 years ago)
Author:
Henrik Bettermann
Message:

Level Zero must not be included in transcripts.

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

Legend:

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

    r15210 r15213  
    14771477    def update(self):
    14781478        super(StudyLevelDisplayFormPage, self).update()
     1479        if self.context.level == 0:
     1480            self.form_fields = self.form_fields.omit('gpa')
    14791481        return
    14801482
     
    14991501    grok.name('course_registration_slip.pdf')
    15001502    grok.require('waeup.viewStudent')
    1501     form_fields = grok.AutoFields(IStudentStudyLevel).omit('level')
     1503    form_fields = grok.AutoFields(IStudentStudyLevel).omit('level', 'gpa')
    15021504    form_fields[
    15031505        'validation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
  • main/waeup.kofa/trunk/src/waeup/kofa/students/studycourse.py

    r15173 r15213  
    127127        total_credits_counted = 0
    128128        for level_key, level_val in self.items():
     129            # Skip Level Zero
     130            if level_key == '0':
     131                continue
    129132            tickets_1 = []
    130133            tickets_2 = []
Note: See TracChangeset for help on using the changeset viewer.