Changeset 15881 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 11 Dec 2019, 12:58:38 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r15880 r15881 35 35 from zope.i18n import translate 36 36 from waeup.kofa.interfaces import ( 37 IExtFileStore, IKofaUtils, RETURNING, PAID, CLEARED, 37 IExtFileStore, IKofaUtils, RETURNING, PAID, CLEARED, GRADUATED, 38 38 academic_sessions_vocab, IFileStoreNameChooser) 39 39 from waeup.kofa.interfaces import MessageFactory as _ … … 1003 1003 format_float = getUtility(IKofaUtils).format_float 1004 1004 cgpa = format_float(transcript_data[1], 3) 1005 f_text = formatted_text('%s (%s)' % ( 1006 cgpa, self.getClassFromCGPA(transcript_data[1], student)[1])) 1005 if student.state == GRADUATED: 1006 f_text = formatted_text('%s (%s)' % ( 1007 cgpa, self.getClassFromCGPA(transcript_data[1], student)[1])) 1008 else: 1009 f_text = formatted_text('%s' % cgpa) 1007 1010 f_text = Paragraph(f_text, ENTRY1_STYLE) 1008 1011 contextdata.append([f_label,f_text])
Note: See TracChangeset for help on using the changeset viewer.