Changeset 12120 for main/kofacustom.nigeria/trunk
- Timestamp:
- 2 Dec 2014, 20:37:44 (10 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/browser.py
r12107 r12120 155 155 form_fields = grok.AutoFields(INigeriaPGStudentClearance).omit( 156 156 'clearance_locked', 'nysc_location', 'clr_code', 'officer_comment', 157 ' date_of_invitation')157 'physical_clearance_date') 158 158 else: 159 159 form_fields = grok.AutoFields(INigeriaUGStudentClearance).omit( 160 160 'clearance_locked', 'clr_code', 'officer_comment', 161 ' date_of_invitation')161 'physical_clearance_date') 162 162 return form_fields 163 163 -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/export.py
r12107 r12120 89 89 90 90 class ClearanceRequestedStudentExporter(StudentExporter): 91 """Exporter of data used to assign dates of invitation91 """Exporter of data used to assign physical clearance dates. 92 92 """ 93 93 … … 95 95 96 96 fields = ('student_id', 'reg_number', 'display_fullname', 97 'state', 'current_session', 'history', ' date_of_invitation')97 'state', 'current_session', 'history', 'physical_clearance_date') 98 98 99 99 title = _(u'Clearance Invitation Data') -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/interfaces.py
r12107 r12120 68 68 ) 69 69 70 date_of_invitation= schema.TextLine(71 title = _(u" Date of Invitation"),70 physical_clearance_date= schema.TextLine( 71 title = _(u"Physical Clearance Date"), 72 72 required = False, 73 73 ) -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py
r12109 r12120 66 66 self.assertMatches( 67 67 'adm_code,alr_date,alr_fname,alr_no,alr_results,clearance_locked,' 68 'clr_code,date_of_birth,d ate_of_invitation,def_adm,disabled,email,emp2_end,'68 'clr_code,date_of_birth,def_adm,disabled,email,emp2_end,' 69 69 'emp2_position,emp2_reason,emp2_start,emp_end,emp_position,' 70 70 'emp_reason,emp_start,employer,employer2,firstname,former_matric,' … … 76 76 'next_kin_address,next_kin_name,next_kin_phone,next_kin_relation,' 77 77 'nysc_lga,nysc_location,nysc_year,officer_comment,' 78 'perm_address,personal_updated,phone, reg_number,'78 'perm_address,personal_updated,phone,physical_clearance_date,reg_number,' 79 79 'religion,scd_sit_date,scd_sit_fname,scd_sit_no,' 80 80 'scd_sit_results,scd_sit_type,sex,student_id,' 81 81 'suspended,suspended_comment,password,state,history,certcode,is_postgrad,' 82 82 'current_level,current_session\r\nmy adm code,,,,' 83 '"[(\'accounts\', \'A\')]",0,my clr code,1981-02-04#,,, ,'83 '"[(\'accounts\', \'A\')]",0,my clr code,1981-02-04#,,,' 84 84 'anna@sample.com,,,,,,,,,,,Anna,,,,,"[(\'accounts\', \'A\')]"' 85 85 ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,' 86 '"Studentroad 21\nLagos 123456\n",,+234-123-12345#, 123,,,,,'86 '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,,123,,,,,' 87 87 '"[(\'accounts\', \'A\')]",,f,A111111,0,,,created,' 88 88 '[u\'2012-11-06 13:16:41 WAT - Record created by system\'],' … … 150 150 # set values we can expect in export file 151 151 self.setup_student(self.student) 152 self.student. date_of_invitation= 'Come soon'152 self.student.physical_clearance_date = 'Come soon' 153 153 IWorkflowState(self.student).setState('clearance requested') 154 154 exporter = ClearanceRequestedStudentExporter() … … 157 157 self.assertMatches( 158 158 'student_id,reg_number,display_fullname,state,current_session,' 159 'history, date_of_invitation\r\n'159 'history,physical_clearance_date\r\n' 160 160 'A111111,123,Anna M. Tester,clearance requested,' 161 161 '2012,2014-12-02 07:17:02 WAT - Record created by system,'
Note: See TracChangeset for help on using the changeset viewer.