Changeset 15652 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 9 Oct 2019, 09:27:16 (5 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/fileviewlets.py
r15163 r15652 62 62 grok.view(StudentClearanceManageFormPage) 63 63 grok.require('waeup.uploadStudentFile') 64 65 @property 66 def mus(self): 67 students_utils = getUtility(IStudentsUtils) 68 return 1024 * students_utils.MAX_KB 64 69 65 70 @property … … 133 138 label = _(u'Birth Certificate') 134 139 title = _(u'Birth Certificate Scan') 135 mus = 1024 * 250136 140 download_name = u'birth_certificate' 137 141 tab_redirect = '#tab2-top' -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r15622 r15652 489 489 else: 490 490 return _(u'No bed allocated.'), None 491 elif category == 'transcript': 492 amount = academic_session.transcript_fee 493 elif category == 'transfer': 494 amount = academic_session.transfer_fee 495 elif category == 'late_registration': 496 amount = academic_session.late_registration_fee 491 else: 492 fee_name = category + '_fee' 493 amount = getattr(academic_session, fee_name, 0.0) 497 494 if amount in (0.0, None): 498 495 return _('Amount could not be determined.'), None … … 1140 1137 'studentpayments', 'bedtickets') 1141 1138 1139 # Maximum size of upload files in kB 1140 MAX_KB = 250 1141 1142 1142 #: A prefix used when generating new student ids. Each student id will 1143 1143 #: start with this string. The default is 'K' for Kofa.
Note: See TracChangeset for help on using the changeset viewer.