Changeset 9982 for main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Timestamp:
- 22 Feb 2013, 17:51:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r9953 r9982 26 26 from waeup.fceokene.interfaces import MessageFactory as _ 27 27 from waeup.kofa.browser.interfaces import IPDFCreator 28 from waeup.kofa.students.utils import trans 28 29 29 30 class CustomStudentsUtils(NigeriaStudentsUtils): … … 293 294 return getUtility(IPDFCreator) 294 295 296 def _admissionText(self, student, portal_language): 297 mode = getattr(student, 'current_mode', None) 298 if mode and mode.startswith('ug'): 299 text = trans(_( 300 'With reference to your application for admission into Bachelor Degree ' 301 'Programme of the University of Ibadan, this is to inform you that you have ' 302 'been provisionally admitted to pursue a full-time Bachelor of Arts in ' 303 'Education Degree Programme as follows:'), 304 portal_language) 305 else: 306 inst_name = grok.getSite()['configuration'].name 307 text = trans(_( 308 'This is to inform you that you have been provisionally' 309 ' admitted into ${a} as follows:', mapping = {'a': inst_name}), 310 portal_language) 311 return text 312 295 313 # FCEOkene prefix 296 314 STUDENT_ID_PREFIX = u'K'
Note: See TracChangeset for help on using the changeset viewer.