Ignore:
Timestamp:
17 Jul 2022, 08:50:14 (2 years ago)
Author:
Henrik Bettermann
Message:

Add continuous assessment (ca) field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/batching.py

    r16949 r17025  
    2020from kofacustom.nigeria.students.batching import NigeriaStudentProcessor
    2121from waeup.kofa.students.batching import (
    22     StudentOnlinePaymentProcessor, StudentStudyLevelProcessor)
     22    StudentOnlinePaymentProcessor, StudentStudyLevelProcessor,
     23    CourseTicketProcessor)
    2324from kofacustom.unidel.students.interfaces import (
    2425    ICustomStudent,
     
    2627    ICustomStudentUpdateByMatricNo,
    2728    ICustomStudentOnlinePayment,
    28     ICustomStudentStudyLevel
     29    ICustomStudentStudyLevel,
     30    ICustomCourseTicketImport
    2931    )
    3032
     
    5355        fields.remove('total_credits_s2')
    5456        return  fields
     57
     58class 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.