Changeset 10922 for main/waeup.aaue/trunk/src/waeup/aaue/students
- Timestamp:
- 15 Jan 2014, 07:49:22 (11 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r10689 r10922 27 27 StudyLevelDisplayFormPage, 28 28 ExportPDFTranscriptPage, 29 ExportPDFAdmissionSlipPage, 29 30 ) 30 31 from kofacustom.nigeria.students.browser import ( … … 176 177 'A.O Esekigbe <br /> Deputy Registrar <br /> ' 177 178 'Exams, Records And Data <br /> For: Registrar')],) 179 180 class CustomExportPDFAdmissionSlipPage(ExportPDFAdmissionSlipPage): 181 """Deliver a PDF Admission slip. 182 """ 183 184 @property 185 def label(self): 186 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 187 return translate(_('e-Admission Slip \n'), 188 'waeup.kofa', target_language=portal_language) \ 189 + ' %s' % self.context.display_fullname -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r10656 r10922 19 19 from time import time 20 20 from zope.component import createObject 21 from waeup.kofa.interfaces import CLEARED, RETURNING, PAID 21 from waeup.kofa.interfaces import ( 22 CLEARED, RETURNING, PAID, academic_sessions_vocab) 22 23 from kofacustom.nigeria.students.utils import NigeriaStudentsUtils 23 24 from waeup.kofa.accesscodes import create_accesscode 25 from waeup.kofa.students.utils import trans 24 26 from waeup.aaue.interfaces import MessageFactory as _ 25 27 … … 127 129 return _('Study course data are incomplete.'), None 128 130 if student.state == CLEARED: 131 if student.faccode == 'FP': 132 amount = 84000.0 # plus acceptance fee? 129 133 amount = academic_session.school_fee 130 134 elif student.state == RETURNING or\ … … 173 177 return None, payment 174 178 179 def _admissionText(self, student, portal_language): 180 inst_name = grok.getSite()['configuration'].name 181 entry_session = student['studycourse'].entry_session 182 entry_session = academic_sessions_vocab.getTerm(entry_session).title 183 text = trans(_( 184 'This is to inform you that you have been provisionally' 185 ' admitted into ${a} for the ${b} academic session as follows:', 186 mapping = {'a': inst_name, 'b': entry_session}), 187 portal_language) 188 return text 189 175 190 def maxCredits(self, studylevel): 176 191 """Return maximum credits.
Note: See TracChangeset for help on using the changeset viewer.