Changeset 13944 for main


Ignore:
Timestamp:
15 Jun 2016, 08:43:43 (9 years ago)
Author:
Henrik Bettermann
Message:

Customize DataForBursaryExporter?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/export.py

    r13623 r13944  
    3131    StudentStudyLevelExporter,
    3232    CourseTicketExporter,
    33     StudentPaymentExporter)
     33    StudentPaymentExporter,
     34    DataForBursaryExporter)
    3435from waeup.kofa.utils.helpers import iface_names
    3536from kofacustom.nigeria.interfaces import MessageFactory as _
     
    3940    """
    4041
    41     #: Fieldnames considered by this exporter
    4242    fields = tuple(sorted(iface_names(
    4343        INigeriaStudent, omit=['loggerInfo']))) + (
     
    5656    """
    5757
    58     #: Fieldnames considered by this exporter
    5958    fields = tuple(
    6059        sorted(iface_names(INigeriaStudentStudyCourse))) + ('student_id',)
     
    6362    """Exporter for StudentStudyLevels.
    6463    """
    65     #: Fieldnames considered by this exporter
    6664    fields = tuple(sorted(iface_names(
    6765        INigeriaStudentStudyLevel))) + (
     
    7270    """
    7371
    74     #: Fieldnames considered by this exporter
    7572    fields = tuple(sorted(iface_names(INigeriaCourseTicket) +
    7673        ['level', 'code', 'level_session'])) + ('student_id',
     
    8178    """
    8279
    83     #: Fieldnames considered by this exporter
    8480    fields = tuple(
    8581        sorted(iface_names(
     
    8783            omit=['display_item','formatted_p_date']))) + (
    8884            'student_id','state','current_session')
     85
     86class NigeriaDataForBursaryExporter(DataForBursaryExporter):
     87    """Exporter for bursary data.
     88    """
     89
     90    fields = tuple(
     91        sorted(iface_names(
     92            INigeriaStudentOnlinePayment, exclude_attribs=False,
     93            omit=['display_item', 'certificate', 'student']))) + (
     94            'student_id','matric_number','reg_number',
     95            'firstname', 'middlename', 'lastname',
     96            'state','current_session',
     97            'entry_session', 'entry_mode',
     98            'faccode', 'depcode','certcode')
    8999
    90100class ClearanceRequestedStudentExporter(StudentExporter):
Note: See TracChangeset for help on using the changeset viewer.