Changeset 13155 for main/kofacustom.nigeria/trunk/src
- Timestamp:
- 7 Jul 2015, 20:53:37 (9 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/browser.py
r13142 r13155 225 225 form_fields = form_fields.omit(field) 226 226 elif self.target is not None and self.target.startswith('pre'): 227 form_fields = grok.AutoFields(INigeriaPGApplicant )227 form_fields = grok.AutoFields(INigeriaPGApplicantEdit) 228 228 for field in PG_OMIT_EDIT_FIELDS: 229 229 form_fields = form_fields.omit(field) 230 230 elif self.target is not None and self.target.startswith('cbt'): 231 form_fields = grok.AutoFields(INigeriaUGApplicant )231 form_fields = grok.AutoFields(INigeriaUGApplicantEdit) 232 232 for field in CBT_OMIT_EDIT_FIELDS: 233 233 form_fields = form_fields.omit(field) -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/export.py
r13092 r13155 37 37 38 38 def mangle_value(self, value, name, context=None): 39 if name == 'jamb_subjects' and value: 40 value = value.replace('\n', '++') 39 41 if '_result' in name and value: 40 42 value = [eval(entry.to_string()) for entry in value] -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/interfaces.py
r13154 r13155 185 185 jamb_subjects = schema.Text( 186 186 title = _(u'Subjects and Scores'), 187 description = _(u'(Enter all four subjects, one subject with score per line!)'),188 187 required = False, 189 188 ) … … 523 522 show_year = True, 524 523 ) 524 jamb_subjects = schema.Text( 525 title = _(u'Subjects and Scores'), 526 description = _(u'Enter all four subjects, one subject with score per line!'), 527 required = True, 528 ) 525 529 526 530 INigeriaUGApplicantEdit[ 527 'date_of_birth'].order = 531 'date_of_birth'].order = INigeriaUGApplicant['date_of_birth'].order 528 532 INigeriaUGApplicantEdit[ 529 'email'].order = INigeriaUGApplicant['email'].order 533 'email'].order = INigeriaUGApplicant['email'].order 534 INigeriaUGApplicantEdit[ 535 'jamb_subjects'].order = INigeriaUGApplicant['jamb_subjects'].order 530 536 531 537 class INigeriaPGApplicantEdit(INigeriaPGApplicant): … … 559 565 class INigeriaApplicantOnlinePayment(INigeriaOnlinePayment): 560 566 """An applicant payment via payment gateways. 561 562 567 """ 563 568 -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/tests/test_browser.py
r13142 r13155 347 347 applicant.course_admitted = self.certificate 348 348 applicant.notice = u'Some notice\nin lines.' 349 applicant.jamb_subjects = u'Line 1\nLine 2' 349 350 applicant.screening_score = 98 350 351 applicant.screening_venue = u'Exam Room' … … 378 379 'Anna M. Tester,anna@sample.com,,,,,,,,,,,Anna,,,,,,' 379 380 '[u\'2015-07-06 11:21:22 WAT - Application initialized by system\']' 380 ',,,,,,,,, ,Tester,,0,M.,NG,"Some notice\nin lines.",,,'381 ',,,,,,,,,Line 1++Line 2,Tester,,0,M.,NG,"Some notice\nin lines.",,,' 381 382 'any password,+234-123-12345#,,123456,,,,,,,' 382 383 '"Saturday, 16th June 2012 2:00:00 PM",98,Exam Room,f,,,'
Note: See TracChangeset for help on using the changeset viewer.