Changeset 12086 for main/kofacustom.wdu


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

Rename some exporter classes: singular not plural.

Location:
main/kofacustom.wdu/trunk/src/kofacustom/wdu
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.wdu/trunk/src/kofacustom/wdu/applicants/export.py

    r11940 r12086  
    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)
     
    2626    ICustomUGApplicant, ICustomPGApplicant)
    2727
    28 class CustomApplicantsExporter(NigeriaApplicantsExporter):
     28class CustomApplicantExporter(NigeriaApplicantExporter):
    2929    """Exporter for Custom Applicants.
    3030    """
  • main/kofacustom.wdu/trunk/src/kofacustom/wdu/applicants/tests/test_browser.py

    r11942 r12086  
    2929from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup
    3030from waeup.kofa.applicants.tests.test_batching import ApplicantImportExportSetup
    31 from kofacustom.wdu.applicants.export import CustomApplicantsExporter
     31from kofacustom.wdu.applicants.export import CustomApplicantExporter
    3232from kofacustom.wdu.applicants.batching import CustomApplicantProcessor
    3333
     
    3737    layer = FunctionalLayer
    3838
    39 class ApplicantsExporterTest(ApplicantImportExportSetup):
     39class ApplicantExporterTest(ApplicantImportExportSetup):
    4040
    4141    layer = FunctionalLayer
    4242
    4343    def setUp(self):
    44         super(ApplicantsExporterTest, self).setUp()
     44        super(ApplicantExporterTest, self).setUp()
    4545        self.outfile = os.path.join(self.workdir, 'myoutput.csv')
    4646        self.cat = getUtility(ICatalog, name='applicants_catalog')
     
    7474        # set values we can expect in export file
    7575        self.applicant = self.setup_applicant(self.applicant)
    76         exporter = CustomApplicantsExporter()
     76        exporter = CustomApplicantExporter()
    7777        exporter.export_all(self.app, self.outfile)
    7878        result = open(self.outfile, 'rb').read()
  • main/kofacustom.wdu/trunk/src/kofacustom/wdu/students/export.py

    r11940 r12086  
    2525    ICustomStudentOnlinePayment)
    2626from kofacustom.nigeria.students.export import (
    27     NigeriaStudentsExporter,
     27    NigeriaStudentExporter,
    2828    NigeriaStudentStudyCourseExporter,
    2929    NigeriaStudentStudyLevelExporter,
     
    3232from waeup.kofa.utils.helpers import iface_names
    3333
    34 class CustomStudentsExporter(NigeriaStudentsExporter):
     34class CustomStudentExporter(NigeriaStudentExporter):
    3535    """Exporter for Students.
    3636    """
  • main/kofacustom.wdu/trunk/src/kofacustom/wdu/students/tests/test_export.py

    r11940 r12086  
    77from kofacustom.wdu.utils.utils import CustomKofaUtils
    88from kofacustom.wdu.students.export import (
    9     CustomStudentsExporter, CustomStudentPaymentsExporter)
     9    CustomStudentExporter, CustomStudentPaymentsExporter)
    1010from kofacustom.wdu.testing import FunctionalLayer
    1111
    1212
    13 class CustomStudentsExporterTest(StudentImportExportSetup):
     13class CustomStudentExporterTest(StudentImportExportSetup):
    1414
    1515    layer = FunctionalLayer
    1616
    1717    def setUp(self):
    18         super(CustomStudentsExporterTest, self).setUp()
     18        super(CustomStudentExporterTest, self).setUp()
    1919        self.setup_for_export()
    2020        result_entry = ResultEntry(
     
    3232    def test_ifaces(self):
    3333        # make sure we fullfill interface contracts
    34         obj = CustomStudentsExporter()
     34        obj = CustomStudentExporter()
    3535        verifyObject(ICSVExporter, obj)
    36         verifyClass(ICSVExporter, CustomStudentsExporter)
     36        verifyClass(ICSVExporter, CustomStudentExporter)
    3737        return
    3838
     
    4242        # set values we can expect in export file
    4343        self.setup_student(self.student)
    44         exporter = CustomStudentsExporter()
     44        exporter = CustomStudentExporter()
    4545        exporter.export_all(self.app, self.outfile)
    4646        result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.