Changeset 17033 for main


Ignore:
Timestamp:
26 Jul 2022, 08:58:05 (2 years ago)
Author:
Henrik Bettermann
Message:

Restructure text imports.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/admission_letter_ug.py

    r17032 r17033  
    1 ADML_UG = """
     1ADML_UG_1 = """
    22Please note that at the point of registration for your programme of study (course), you will be required to present the following documents: Current UTME result slip, WAEC/NECO (0' Level) result, Birth certificate or sworn affidavit of age, and health certificate from a recognized Medical Centre.
    33
     
    1717
    1818Food: Food is available in cafeteria on "pay-as-you-eat" basis.
     19"""
    1920
    20 Resumption Date: The University opens for fresh students on Saturday, 9th October, 2021. All newly admitted students are expected to resume on that date.
     21ADML_UG_2_MEDICAL = """
     22niversity opens for fresh students on Saturday, 24th September, 2022. All newly admitted students are expected to resume on that date.
    2123
    22 Registration/Orientation Programme: Orientation programme/registration for fresh students will start on Monday, 11th October, 2021 - Friday, 15th October, 2021. A late registration fee of N50,000 will be charged after this date. All credentials, O'Level Results, Birth Certificate/Age Declaration, UTME Result Slip (Original) will be checked during registration. This admission will be cancelled at any point in time it is found that any of your claims in the application form is false.
     24Registration/Orientation Programme: Orientation programme/registration for fresh students will start on Monday, 26th September, 2022 - Friday, 30th September, 2022. A late registration fee of N50,000 will be charged after this date. All credentials, O'Level Results, Birth Certificate/Age Declaration, UTME Result Slip (Original) will be checked during registration. This admission will be cancelled at any point in time it is found that any of your claims in the application form is false.
     25"""
    2326
     27ADML_UG_2_PHARMACY = """
     28Resumption Date: The University opens for fresh students on Saturday, 24th September, 2022. All newly admitted students are expected to resume on that date.
     29
     30Registration/Orientation Programme: Orientation programme/registration for fresh students will start on Monday, 26th September, 2022 - Friday, 30th September, 2022. A late registration fee of N50,000 will be charged after this date. All credentials, O'Level Results, Birth Certificate/Age Declaration, UTME Result Slip (Original) will be checked during registration. This admission will be cancelled at any point in time it is found that any of your claims in the application form is false.
     31"""
     32
     33ADML_UG_2 = """
     34Resumption Date: The University opens for fresh students on Saturday, 24th September, 2022. All newly admitted students are expected to resume on that date.
     35
     36Registration/Orientation Programme: Orientation programme/registration for fresh students will start on Monday, 26th September, 2022 - Friday, 30th September, 2022.A late registration fee of N50,000 will be charged after this date. All credentials, O'Level Results, Birth Certificate/Age Declaration, UTME Result Slip (Original) will be checked during registration. This admission will be cancelled at any point in time it is found that any of your claims in the application form is false.
     37"""
     38
     39ADML_UG_3 = """
    2440Transport Facility: The University provides a compulsory shuttle bus service to all students at a fee already included in the other charges.
    2541
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/browser.py

    r17032 r17033  
    409409    grok.require('waeup.payStudent')
    410410
     411from kofacustom.iuokada.students.admission_letter_ug import (
     412    ADML_UG_1, ADML_UG_2, ADML_UG_3, ADML_UG_2_MEDICAL, ADML_UG_2_PHARMACY,
     413    BASIC_MEDICAL_ONLY, BASIC_PHARMACY_ONLY)
     414from kofacustom.iuokada.students.admission_letter_pg import ADML_PG
     415from kofacustom.iuokada.students.admission_letter_pt import ADML_PT
     416from kofacustom.iuokada.students.admission_letter_jupeb import ADML_JUPEB
     417
    411418class CustomExportPDFAdmissionSlip(ExportPDFAdmissionSlip):
    412419    """Deliver a PDF Admission slip.
     
    448455            ' into the Igbinedion University, Okada was successful. You have'
    449456            ' been admitted as follows:')
    450 
    451     @property
    452     def basic_medical_only_text(self):
    453         from kofacustom.iuokada.students.admission_letter_ug import BASIC_MEDICAL_ONLY
    454         return BASIC_MEDICAL_ONLY
    455        
    456     @property
    457     def basic_pharmacy_only_text(self):
    458         from kofacustom.iuokada.students.admission_letter_ug import BASIC_PHARMACY_ONLY
    459         return BASIC_PHARMACY_ONLY
    460 
    461     @property
    462     def post_text_ug(self):
    463         from kofacustom.iuokada.students.admission_letter_ug import ADML_UG
    464         return ADML_UG
    465 
    466     @property
    467     def post_text_pg(self):
    468         from kofacustom.iuokada.students.admission_letter_pg import ADML_PG
    469         return ADML_PG
    470 
    471     @property
    472     def post_text_pt(self):
    473         from kofacustom.iuokada.students.admission_letter_pt import ADML_PT
    474         return ADML_PT
    475 
    476     @property
    477     def post_text_jupeb(self):
    478         from kofacustom.iuokada.students.admission_letter_jupeb import ADML_JUPEB
    479         return ADML_JUPEB
    480457
    481458    def render(self):
     
    487464            return students_utils.renderPDFAdmissionLetter(self,
    488465                self.context.student, omit_fields=self.omit_fields,
    489                 pre_text=self.pre_text_ug, post_text=self.post_text_jupeb,
     466                pre_text=self.pre_text_ug, post_text=ADML_JUPEB,
    490467                watermark=watermark)
    491468        if self.context.current_mode.endswith('_pt'):
    492469            return students_utils.renderPDFAdmissionLetter(self,
    493470                self.context.student, omit_fields=self.omit_fields,
    494                 pre_text=self.pre_text_ug, post_text=self.post_text_pt,
     471                pre_text=self.pre_text_ug, post_text=ADML_PT,
    495472                watermark=watermark)
    496473        if self.context.is_postgrad:
     
    501478            return students_utils.renderPDFAdmissionLetter(self,
    502479                self.context.student, omit_fields=self.omit_fields,
    503                 pre_text=self.pre_text_pg, post_text=self.post_text_pg,
     480                pre_text=self.pre_text_pg, post_text=ADML_PG,
    504481                mergefiles=mergefiles,
    505482                watermark=watermark)
     
    509486        mergefiles = [file,]
    510487        if self.context.certcode in ('BBMS', 'MBBS') and self.context.current_level == 100:
    511             post_text = self.basic_medical_only_text + self.post_text_ug
     488            post_text = BASIC_MEDICAL_ONLY + ADML_UG_1 + ADML_UG_2_MEDICAL + ADML_UG_3
    512489        elif self.context.certcode in ('BPHARM',) and self.context.current_level == 100:
    513             post_text = self.basic_pharmacy_only_text + self.post_text_ug
     490            post_text = BASIC_PHARMACY_ONLY + ADML_UG_1 + ADML_UG_2_MEDICAL + ADML_UG_3
    514491        else:
    515             post_text = self.post_text_ug
     492            post_text = ADML_UG_1 + ADML_UG_2 + ADML_UG_3
    516493        return students_utils.renderPDFAdmissionLetter(self,
    517494            self.context.student, omit_fields=self.omit_fields,
Note: See TracChangeset for help on using the changeset viewer.