Changeset 12081


Ignore:
Timestamp:
28 Nov 2014, 09:53:21 (10 years ago)
Author:
Henrik Bettermann
Message:

Rename some exporter classes: singular not plural.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/export.py

    r11546 r12081  
    2020import grok
    2121from waeup.kofa.applicants.interfaces import IApplicantBaseData
    22 from kofacustom.nigeria.applicants.export import NigeriaApplicantsExporter
     22from kofacustom.nigeria.applicants.export import NigeriaApplicantExporter
    2323from kofacustom.nigeria.applicants.interfaces import (
    2424    INigeriaUGApplicant, INigeriaPGApplicant)
    2525from waeup.aaue.applicants.interfaces import ICustomUGApplicant
    2626
    27 class CustomApplicantsExporter(NigeriaApplicantsExporter):
     27class CustomApplicantExporter(NigeriaApplicantExporter):
    2828    """Exporter for Nigeria Applicants.
    2929    """
  • main/waeup.aaue/trunk/src/waeup/aaue/students/export.py

    r11546 r12081  
    2424    ICustomStudentOnlinePayment)
    2525from kofacustom.nigeria.students.export import (
    26     NigeriaStudentsExporter, NigeriaStudentStudyCourseExporter,
     26    NigeriaStudentExporter, NigeriaStudentStudyCourseExporter,
    2727    NigeriaStudentStudyLevelExporter,
    2828    NigeriaCourseTicketExporter, NigeriaStudentPaymentsExporter)
    2929from waeup.kofa.utils.helpers import iface_names
    3030
    31 class CustomStudentsExporter(NigeriaStudentsExporter):
     31class CustomStudentExporter(NigeriaStudentExporter):
    3232    """Exporter for Students.
    3333    """
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_export.py

    r11807 r12081  
    77from waeup.aaue.utils.utils import CustomKofaUtils
    88from waeup.aaue.students.export import (
    9     CustomStudentsExporter, CustomStudentPaymentsExporter,
     9    CustomStudentExporter, CustomStudentPaymentsExporter,
    1010    CustomStudentStudyLevelExporter)
    1111from waeup.aaue.testing import FunctionalLayer
    1212
    1313
    14 class CustomStudentsExporterTest(StudentImportExportSetup):
     14class CustomStudentExporterTest(StudentImportExportSetup):
    1515
    1616    layer = FunctionalLayer
    1717
    1818    def setUp(self):
    19         super(CustomStudentsExporterTest, self).setUp()
     19        super(CustomStudentExporterTest, 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 = CustomStudentsExporter()
     35        obj = CustomStudentExporter()
    3636        verifyObject(ICSVExporter, obj)
    37         verifyClass(ICSVExporter, CustomStudentsExporter)
     37        verifyClass(ICSVExporter, CustomStudentExporter)
    3838        return
    3939
     
    4343        # set values we can expect in export file
    4444        self.setup_student(self.student)
    45         exporter = CustomStudentsExporter()
     45        exporter = CustomStudentExporter()
    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.