Ignore:
Timestamp:
28 Nov 2014, 08:59:38 (10 years ago)
Author:
Henrik Bettermann
Message:

Rename some exporter classes: singular not plural.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students
Files:
2 edited

Legend:

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

    r11544 r12080  
    2525    INigeriaStudentOnlinePayment)
    2626from waeup.kofa.students.export import (
    27     StudentsExporter,
     27    StudentExporter,
    2828    StudentStudyCourseExporter,
    2929    StudentStudyLevelExporter,
     
    3232from waeup.kofa.utils.helpers import iface_names
    3333
    34 class NigeriaStudentsExporter(StudentsExporter):
     34class NigeriaStudentExporter(StudentExporter):
    3535    """Exporter for Students.
    3636    """
     
    4646            value = [eval(entry.to_string()) for entry in value]
    4747        return super(
    48             NigeriaStudentsExporter, self).mangle_value(
     48            NigeriaStudentExporter, self).mangle_value(
    4949            value, name, context=context)
    5050
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py

    r11780 r12080  
    88from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
    99from kofacustom.nigeria.students.export import (
    10     NigeriaStudentsExporter, NigeriaStudentPaymentsExporter)
     10    NigeriaStudentExporter, NigeriaStudentPaymentsExporter)
    1111from kofacustom.nigeria.testing import FunctionalLayer
    1212
    1313
    14 class NigeriaStudentsExporterTest(StudentImportExportSetup):
     14class NigeriaStudentExporterTest(StudentImportExportSetup):
    1515
    1616    layer = FunctionalLayer
    1717
    1818    def setUp(self):
    19         super(NigeriaStudentsExporterTest, self).setUp()
     19        super(NigeriaStudentExporterTest, self).setUp()
    2020        self.setup_for_export()
    2121        result_entry = ResultEntry(
     
    3333    def test_ifaces(self):
    3434        # make sure we fullfill interface contracts
    35         obj = NigeriaStudentsExporter()
     35        obj = NigeriaStudentExporter()
    3636        verifyObject(ICSVExporter, obj)
    37         verifyClass(ICSVExporter, NigeriaStudentsExporter)
     37        verifyClass(ICSVExporter, NigeriaStudentExporter)
    3838        return
    3939
     
    4343        # set values we can expect in export file
    4444        self.setup_student(self.student)
    45         exporter = NigeriaStudentsExporter()
     45        exporter = NigeriaStudentExporter()
    4646        exporter.export_all(self.app, self.outfile)
    4747        result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.