Ignore:
Timestamp:
25 May 2018, 05:47:23 (7 years ago)
Author:
Henrik Bettermann
Message:

Export two more year columns.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/export.py

    r14856 r15025  
    1818"""Exporters for student related stuff.
    1919"""
     20from datetime import datetime
    2021from waeup.uniben.students.interfaces import (
    2122    ICustomStudent,
     
    3031    NigeriaCourseTicketExporter,
    3132    NigeriaStudentPaymentExporter,
    32     NigeriaDataForBursaryExporter)
     33    NigeriaDataForBursaryExporter,
     34    )
     35from waeup.kofa.students.export import StudentPaymentsOverviewExporter
    3336from waeup.kofa.utils.helpers import iface_names
    3437
     
    8891            'entry_session', 'entry_mode',
    8992            'faccode', 'depcode','certcode')
     93
     94class CustomStudentPaymentsOverviewExporter(StudentPaymentsOverviewExporter):
     95
     96    curr_year = datetime.now().year
     97    year_range = range(curr_year - 13, curr_year + 1) # two more years in Uniben
     98    year_range_tuple = tuple([str(year) for year in year_range])
     99
     100    fields = ('student_id', 'matric_number', 'display_fullname',
     101        'state', 'certcode', 'faccode', 'depcode', 'is_postgrad',
     102        'current_level', 'current_session', 'current_mode',
     103        'entry_session', 'reg_number'
     104        ) + year_range_tuple
Note: See TracChangeset for help on using the changeset viewer.