Changeset 17835 for main/waeup.uniben/trunk/src/waeup
- Timestamp:
- 8 Jul 2024, 16:05:10 (6 months ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r17834 r17835 1095 1095 'nysc_updated'].custom_widget = FriendlyDatetimeDisplayWidget('le') 1096 1096 form_fields['nysc'].custom_widget = CustomBooleanRadioWidget 1097 form_fields['nysc_ senate_info'].field.description = u'Sample: Meeting Date: 10TH MAY 2023. DEG CLASS: FIRST CLASS. S/NO: 01'1097 form_fields['nysc_processed'].for_display = True 1098 1098 #form_fields['nysc_senate_info'].field.description = u'' 1099 1099 return form_fields … … 1119 1119 form_fields['nysc'].field.description = u'' 1120 1120 form_fields['nysc'].field.title = u'NYSC requested' 1121 form_fields['nysc_senate_info'].field.description = u'Sample: Meeting Date: 10TH MAY 2023. DEG CLASS: FIRST CLASS. S/NO: 01'1122 1121 form_fields[ 1123 1122 'nysc_updated'].custom_widget = FriendlyDatetimeDisplayWidget('le') -
main/waeup.uniben/trunk/src/waeup/uniben/students/export.py
r17834 r17835 210 210 'nysc_date_of_graduation', 211 211 'nysc_updated', 212 'nysc_processed', 212 213 ) + year_range_tuple 213 214 title = u'NYSC Indication' … … 216 217 students = list() 217 218 for student in x: 218 if student.nysc == True :219 if student.nysc == True and student.nysc_processed == False: 219 220 students.append(student) 220 221 return students -
main/waeup.uniben/trunk/src/waeup/uniben/students/interfaces.py
r17822 r17835 226 226 ) 227 227 228 nysc_processed = schema.Bool( 229 title = u'NYSC processed', 230 default = False, 231 required = True, 232 ) 233 228 234 nysc_updated = schema.Datetime( 229 235 title = _(u'NYSC request data last updated by student'), … … 239 245 title = _(u'Senate Info'), 240 246 required = False, 247 description = u'Sample: Meeting Date: 10TH MAY 2023. DEG CLASS: FIRST CLASS. S/NO: 01', 241 248 ) 242 249 -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_export.py
r17834 r17835 178 178 self.setup_student(self.student) 179 179 self.student.nysc = True 180 self.student.nysc_processed = False 180 181 self.student.lga = u'xyz_abc' 181 182 exporter = NYSCExporter() … … 187 188 'depcode,current_level,current_session,current_verdict,' 188 189 'entry_session,faccode,depcode,certcode,' 189 'nysc_senate_info,nysc_date_of_graduation,nysc_updated, %s\r\n'190 'nysc_senate_info,nysc_date_of_graduation,nysc_updated,nysc_processed,%s\r\n' 190 191 'A111111,234,123,Anna,M.,Tester,f,NG,1981-02-04#,created,xyz,abc,ug_ft,' 191 'CERT1,NA,NA,200,2012,0,2010,NA,NA,CERT1,,,, ,,,,,12.12,,,,,,\r\n' % year_range_str,192 'CERT1,NA,NA,200,2012,0,2010,NA,NA,CERT1,,,,0,,,,,,12.12,,,,,,\r\n' % year_range_str, 192 193 result 193 194 )
Note: See TracChangeset for help on using the changeset viewer.