Ignore:
Timestamp:
23 Aug 2017, 16:35:14 (7 years ago)
Author:
Henrik Bettermann
Message:

Adjust CustomApplicantProcessor? and customize ApplicantOnlinePaymentProcessor?.

Adjust CustomStudentProcessor?.

Location:
main/kofacustom.skeleton/trunk/src/kofacustom/skeleton
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/applicants/batching.py

    r11543 r14818  
    1818"""Batch processing for applicants.
    1919"""
    20 from waeup.kofa.utils.batching import BatchProcessor
    21 from waeup.kofa.applicants.batching import ApplicantProcessor
     20from kofacustom.nigeria.applicants.batching import NigeriaApplicantProcessor
     21from waeup.kofa.applicants.batching import ApplicantOnlinePaymentProcessor
    2222from kofacustom.skeleton.applicants.interfaces import (
    23     ICustomApplicant, ICustomApplicantUpdateByRegNo)
     23    ICustomApplicant,
     24    ICustomApplicantUpdateByRegNo,
     25    ICustomApplicantOnlinePayment
     26    )
    2427
    25 class CustomApplicantProcessor(ApplicantProcessor):
    26     """A batch processor for IApplicant objects.
     28class CustomApplicantProcessor(NigeriaApplicantProcessor):
    2729
    28     In create mode container_code is required. If application_number is given
    29     an applicant with this number is created in the designated container.
    30     If application_number is not given a random application_number is assigned.
    31     applicant_id is being determined by the system and can't be imported.
    32 
    33     In update or remove mode container_code and application_number columns
    34     must not exist. The applicant object is solely searched by its applicant_id
    35     or reg_number.
    36     """
    3730    iface = ICustomApplicant
    3831    iface_byregnumber = ICustomApplicantUpdateByRegNo
     32
     33class CustomApplicantOnlinePaymentProcessor(ApplicantOnlinePaymentProcessor):
     34    """A batch processor for ICustomStudentOnlinePayment objects.
     35    """
     36    iface = ICustomApplicantOnlinePayment
  • main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/students/batching.py

    r10765 r14818  
    1717##
    1818"""Batch processing components for student objects.
    19 
    20 Batch processors eat CSV files to add, update or remove large numbers
    21 of certain kinds of objects at once.
    22 
    23 Here we define the processors for students specific objects like
    24 students, studycourses, payment tickets and accommodation tickets.
    2519"""
     20from kofacustom.nigeria.students.batching import NigeriaStudentProcessor
     21from waeup.kofa.students.batching import StudentOnlinePaymentProcessor
    2622from kofacustom.skeleton.students.interfaces import (
    27     ICustomStudent, ICustomStudentUpdateByRegNo,
     23    ICustomStudent,
     24    ICustomStudentUpdateByRegNo,
    2825    ICustomStudentUpdateByMatricNo,
    2926    ICustomStudentOnlinePayment
    3027    )
    31 from waeup.kofa.students.batching import (
    32     StudentProcessor, StudentOnlinePaymentProcessor)
    3328
    34 class CustomStudentProcessor(StudentProcessor):
     29class CustomStudentProcessor(NigeriaStudentProcessor):
    3530    """A batch processor for ICustomStudent objects.
    3631    """
Note: See TracChangeset for help on using the changeset viewer.