- Timestamp:
- 8 Nov 2018, 12:45:03 (6 years ago)
- Location:
- main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/applicants
- Files:
-
- 4 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
Note: See TracChangeset for help on using the changeset viewer.