Changeset 15218 for main/kofacustom.edopoly
- Timestamp:
- 8 Nov 2018, 12:45:03 (6 years ago)
- Location:
- main/kofacustom.edopoly/trunk/src/kofacustom/edopoly
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/applicants/applicant.py
r15131 r15218 26 26 from kofacustom.nigeria.applicants.applicant import NigeriaApplicant 27 27 from kofacustom.edopoly.applicants.interfaces import( 28 ICustomApplicant, ICustomUGApplicantEdit, ICustomPGApplicantEdit, IPUTMEApplicantEdit) 28 ICustomApplicant, ICustomUGApplicantEdit, ICustomPGApplicantEdit, 29 IPUTMEApplicantEdit, ICustomSpecialApplicant) 29 30 30 31 class CustomApplicant(NigeriaApplicant): 31 32 32 33 grok.implements(ICustomApplicant, ICustomUGApplicantEdit, 33 ICustomPGApplicantEdit, IPUTMEApplicantEdit )34 ICustomPGApplicantEdit, IPUTMEApplicantEdit, ICustomSpecialApplicant) 34 35 grok.provides(ICustomApplicant) 35 36 -
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/applicants/browser.py
r15171 r15218 47 47 ICustomUGApplicantEdit, ICustomUGApplicant, 48 48 ICustomPGApplicantEdit, ICustomPGApplicant, 49 ICustomApplicant, )49 ICustomApplicant, ICustomSpecialApplicant,) 50 50 51 51 from kofacustom.edopoly.interfaces import MessageFactory as _ … … 85 85 def form_fields(self): 86 86 target = getattr(self.context.__parent__, 'prefix', None) 87 if self.context.special: 88 return grok.AutoFields(ICustomSpecialApplicant) 87 89 form_fields = grok.AutoFields(ICustomUGApplicant) 88 90 for field in UG_OMIT_DISPLAY_FIELDS: … … 217 219 @property 218 220 def form_fields(self): 221 if self.context.special: 222 form_fields = grok.AutoFields(ICustomSpecialApplicant) 223 form_fields['applicant_id'].for_display = True 224 return form_fields 219 225 target = getattr(self.context.__parent__, 'prefix', None) 220 226 form_fields = grok.AutoFields(ICustomUGApplicant) … … 231 237 @property 232 238 def form_fields(self): 239 if self.context.special: 240 form_fields = grok.AutoFields(ICustomSpecialApplicant).omit( 241 'locked', 'suspended') 242 form_fields['applicant_id'].for_display = True 243 return form_fields 233 244 target = getattr(self.context.__parent__, 'prefix', None) 234 245 form_fields = grok.AutoFields(ICustomUGApplicantEdit) -
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/applicants/interfaces.py
r15169 r15218 28 28 from waeup.kofa.schema import FormattedDate, TextLineChoice 29 29 from waeup.kofa.students.vocabularies import nats_vocab, GenderSource 30 from waeup.kofa.applicants.interfaces import contextual_reg_num_source 30 from waeup.kofa.applicants.interfaces import ( 31 contextual_reg_num_source, ISpecialApplicant) 31 32 from kofacustom.nigeria.applicants.interfaces import ( 32 33 LGASource, high_qual, high_grade, exam_types, … … 225 226 """ 226 227 228 class ICustomSpecialApplicant(ISpecialApplicant): 229 """ 230 """ 227 231 228 232 class ICustomApplicant(ICustomUGApplicant, ICustomPGApplicant): -
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/applicants/utils.py
r15110 r15218 42 42 'pre': ['Pre-Degree Studies', 'PRE'], 43 43 'ct': ['Certificate Programmes', 'CT'], 44 'special': ['Supplementary Payment', 'SP'], 44 45 } 45 46 -
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interfaces.py
r15183 r15218 123 123 ) 124 124 125 medical_fee = schema.Float( 126 title = _(u'Medical Fee'), 127 default = 0.0, 128 required = False, 129 ) 130 131 conv_nd_fee = schema.Float( 132 title = _(u'Convocation Fee ND'), 133 default = 0.0, 134 required = False, 135 ) 136 137 conv_hnd_fee = schema.Float( 138 title = _(u'Convocation Fee ND'), 139 default = 0.0, 140 required = False, 141 ) 142 125 143 def getSessionString(): 126 144 """Returns the session string from the vocabulary. -
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interswitch/browser.py
r15137 r15218 49 49 httplib.HTTPSConnection.debuglevel = 0 50 50 HTTPS = True 51 52 SPECIAL_PAYMENT_PARAMS = { 53 54 'conv_nd': ('101', 2000.0, '0031913976', '121'), 55 'conv_hnd': ('101', 2000.0, '0031913976', '121'), 56 } 57 51 58 52 59 class CustomInterswitchPageStudent(InterswitchPageStudent): … … 155 162 xmldict['institution_item_name'] = self.context.category 156 163 xmldict['institution_name'] = INSTITUTION_NAME 164 if self.context.p_category in SPECIAL_PAYMENT_PARAMS.keys(): 165 self.pay_item_id = SPECIAL_PAYMENT_PARAMS[self.context.p_category][0] 166 provider_amt = SPECIAL_PAYMENT_PARAMS[self.context.p_category][1] 167 xmldict['institution_acct'] = SPECIAL_PAYMENT_PARAMS[self.context.p_category][2] 168 xmldict['institution_bank_id'] = SPECIAL_PAYMENT_PARAMS[self.context.p_category][3] 157 169 # Interswitch amount is not part of the xml data 158 170 if provider_amt == 0: -
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/utils/utils.py
r15193 r15218 58 58 'admission_checking': 'Admission Checking Fee', 59 59 'medical': 'Medical Fee', 60 'conv_nd': 'Convocation ND', 61 'conv_hnd': 'Convocation HND', 60 62 } 61 63 62 SELECTABLE_PAYMENT_CATEGORIES = deepcopy(PAYMENT_CATEGORIES) 63 64 SELECTABLE_PAYMENT_CATEGORIES = { 65 'schoolfee': 'Tuition/Exams Fee', 66 'clearance': 'Acceptance Fee', 67 'bed_allocation': 'Accommodation Booking Fee', 68 'hostel_maintenance': 'Hostel Maintenance Fee', 69 'application': 'Application Fee', 70 'ict_entre': 'ICT and Entrepreneur Fee', 71 'logbook_combo': 'Logbook Combo Fee', 72 'siwess_combo': 'SIWESS Combo Fee', 73 'transcript': 'Transcript Fee', 74 'certificate': 'Certificate Fee', 75 'certificate_confirm': 'Certificate Confirmation Fee', 76 'late_registration': 'Late Course Registration Fee', 77 'final_clearance': 'Final Clearance Fee', 78 'union': 'Student Union Dues', 79 'admission_checking': 'Admission Checking Fee', 80 'medical': 'Medical Fee', 81 #'conv_nd': 'Convocation ND', 82 #'conv_hnd': 'Convocation HND', 83 } 64 84 PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES) 65 85 … … 86 106 } 87 107 108 SPECIAL_APP_DICT = { 109 'conv_nd': 'Convocation ND', 110 'conv_hnd': 'Convocation HND', 111 } 112 88 113 STUDY_MODES_DICT = { 89 114 'ug_ft': 'Undergraduate Full Time (not used in EdoPoly)',
Note: See TracChangeset for help on using the changeset viewer.