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

Rename some exporter classes: singular not plural.

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

Legend:

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

    r11543 r12084  
    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.skeleton/trunk/src/kofacustom/skeleton/applicants/tests/test_browser.py

    r11941 r12084  
    2929from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup
    3030from waeup.kofa.applicants.tests.test_batching import ApplicantImportExportSetup
    31 from kofacustom.skeleton.applicants.export import CustomApplicantsExporter
     31from kofacustom.skeleton.applicants.export import CustomApplicantExporter
    3232from kofacustom.skeleton.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.skeleton/trunk/src/kofacustom/skeleton/students/export.py

    r11545 r12084  
    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.skeleton/trunk/src/kofacustom/skeleton/students/tests/test_export.py

    r11813 r12084  
    77from kofacustom.skeleton.utils.utils import CustomKofaUtils
    88from kofacustom.skeleton.students.export import (
    9     CustomStudentsExporter, CustomStudentPaymentsExporter)
     9    CustomStudentExporter, CustomStudentPaymentsExporter)
    1010from kofacustom.skeleton.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.