- Timestamp:
- 17 Jul 2022, 08:50:14 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/batching.py
r16949 r17025 20 20 from kofacustom.nigeria.students.batching import NigeriaStudentProcessor 21 21 from waeup.kofa.students.batching import ( 22 StudentOnlinePaymentProcessor, StudentStudyLevelProcessor) 22 StudentOnlinePaymentProcessor, StudentStudyLevelProcessor, 23 CourseTicketProcessor) 23 24 from kofacustom.unidel.students.interfaces import ( 24 25 ICustomStudent, … … 26 27 ICustomStudentUpdateByMatricNo, 27 28 ICustomStudentOnlinePayment, 28 ICustomStudentStudyLevel 29 ICustomStudentStudyLevel, 30 ICustomCourseTicketImport 29 31 ) 30 32 … … 53 55 fields.remove('total_credits_s2') 54 56 return fields 57 58 class CustomCourseTicketProcessor(CourseTicketProcessor): 59 """A batch processor for ICourseTicket objects. 60 """ 61 iface = ICustomCourseTicketImport 62 63 @property 64 def available_fields(self): 65 fields = [ 66 'student_id','reg_number','matric_number', 67 'mandatory', 'score', 'ca', 'carry_over', 'automatic', 68 'level_session', 'outstanding', 'course_category', 69 'title', 'credits', 'passmark', 'semester', 'ticket_session', 70 'unlock_score', 'previous' 71 ] + self.additional_fields 72 return sorted(fields)
Note: See TracChangeset for help on using the changeset viewer.