- Timestamp:
- 23 Feb 2017, 11:44:30 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py
r14531 r14574 25 25 from zope.component.interfaces import IFactory 26 26 from zope.catalog.interfaces import ICatalog 27 from zope.component import createObject, queryUtility 27 from zope.component import createObject, queryUtility, getUtility 28 28 from zope.interface import implementedBy 29 from waeup.kofa.interfaces import academic_sessions_vocab, VALIDATED 29 from waeup.kofa.interfaces import academic_sessions_vocab, VALIDATED, IKofaUtils 30 30 from waeup.kofa.students.interfaces import ( 31 31 IStudentStudyLevel, IStudentNavigation, ICourseTicket) … … 79 79 total = 0 80 80 for ticket in self.values(): 81 total += ticket.credits 81 if not ticket.outstanding: 82 total += ticket.credits 82 83 return total 83 84 … … 135 136 @property 136 137 def gpa(self): 137 return self.gpa_params[0] 138 """Return string formatted gpa value. 139 """ 140 format_float = getUtility(IKofaUtils).format_float 141 return format_float(self.gpa_params[0], 2) 138 142 139 143 @property
Note: See TracChangeset for help on using the changeset viewer.