Changeset 9982 for main/waeup.fceokene/trunk/src
- Timestamp:
- 22 Feb 2013, 17:51:35 (12 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene
- Files:
-
- 1 added
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/browser/pdf.py
r9950 r9982 35 35 grok.name('ibadan_pdfcreator') 36 36 37 # right (default) logo 37 38 header_logo_path = os.path.join( 38 os.path.dirname(__file__), 'static', 'pdf_logo_ 2.jpg')39 os.path.dirname(__file__), 'static', 'pdf_logo_ibadan.jpg') 39 40 40 logo_pos = [ 480, 740, 90]41 logo_pos = [520, 750, 60] 41 42 43 # left logo 44 header_logo_left_path = os.path.join( 45 os.path.dirname(__file__), 'static', 'pdf_logo.jpg') 46 47 logo_left_pos = [15, 750, 60] 48 49 50 -
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.