Changeset 15887 for main/waeup.fceokene
- Timestamp:
- 12 Dec 2019, 16:40:37 (5 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/browser.py
r15717 r15887 17 17 ## 18 18 import grok 19 import os 19 20 from zope.i18n import translate 20 21 from zope.component import getUtility … … 62 63 return """You should note the following as conditions for admission: 63 64 64 1. At the point of registration, you will be required to present the originals 65 of your certificate(s), Jamb Original Result, a Birth Certificate or a Declaration 66 of Age Certificate and Evidence of Citizenship Certificate. 67 68 2. Please note that the name by which you are hereby admitted and by which you 69 will be registered is the one which will appear on any certificate that the 70 Federal College of Education, Okene may issue to you on successful completion 71 of your programme except there was a change of name by sworn affidavit or 72 marriage certificate in addition to newspaper publication. 73 74 3. You are hereby informed that all fees must be paid at the beginning of 75 the academic session. The current school fees can be obtained from the 76 College website. 77 78 4. You will present at the time of registration the Medical Certificate of 79 Fitness from the Federal College of Education, Okene Medical Centre. 80 81 5. Please, note that due to shortage of accommodations, students shall be 82 given accommodations on first come, first serve basis. 65 1. At the point of registration, you will be required to present the originals of your certificate(s), 66 Jamb Original Result, a Birth Certificate or a Declaration of Age Certificate and Evidence of 67 Citizenship Certificate. 68 69 2. Please note that the name by which you are hereby admitted and by which you will be registered 70 is the one which will appear on any certificate that the Federal College of Education, Okene may 71 issue to you on successful completion of your programme except there was a change of name by 72 sworn affidavit or marriage certificate in addition to newspaper publication. 73 74 3. You are hereby informed that all fees must be paid at the beginning of the academic session. 75 The current school fees can be obtained from the College website. 76 77 4. You will present at the time of registration the Medical Certificate of Fitness from the Federal 78 College of Education, Okene Medical Centre. 79 80 5. Please, note that due to shortage of accommodations, students shall be given accommodations 81 on first come, first serve basis. 83 82 84 83 6. The offer is not transferable to another session. 85 84 86 7. You will sign a declaration of good conduct except by deferment on your 87 arrival at the College. 85 7. You will sign a declaration of good conduct except by deferment on your arrival at the College. 88 86 89 87 Accept my congratulations. … … 96 94 """ 97 95 98 99 96 def render(self): 100 97 students_utils = getUtility(IStudentsUtils) 98 letterhead_path = os.path.join( 99 os.path.dirname(__file__), 'static', 'letterhead_admission.jpg') 100 if self.context.student.current_mode.startswith('ug'): 101 letterhead_path = None 101 102 return students_utils.renderPDFAdmissionLetter(self, 102 103 self.context.student, omit_fields=self.omit_fields, 104 letterhead_path=letterhead_path, 103 105 post_text=self._post_text) 104 106 -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r15827 r15887 394 394 self.assertEqual(self.browser.headers['Status'], '200 Ok') 395 395 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 396 path = os.path.join(samples_dir(), 'admission_slip_combined.pdf') 397 open(path, 'wb').write(self.browser.contents) 398 print "Sample PDF admission_slip_combined.pdf written to %s" % path 399 self.certificate.study_mode = 'pd_ft' 400 self.browser.open(self.student_path) 401 self.browser.getLink("Download admission letter").click() 396 402 path = os.path.join(samples_dir(), 'admission_slip.pdf') 397 403 open(path, 'wb').write(self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.