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/applicants
Files:
2 edited

Legend:

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

    r9582 r12080  
    2020import grok
    2121from waeup.kofa.applicants.interfaces import IApplicantBaseData
    22 from waeup.kofa.applicants.export import ApplicantsExporter
     22from waeup.kofa.applicants.export import ApplicantExporter
    2323from kofacustom.nigeria.applicants.interfaces import (
    2424    INigeriaUGApplicant, INigeriaPGApplicant)
    2525
    26 class NigeriaApplicantsExporter(ApplicantsExporter):
     26class NigeriaApplicantExporter(ApplicantExporter):
    2727    """Exporter for Nigeria Applicants.
    2828    """
     
    3838            value = [eval(entry.to_string()) for entry in value]
    3939        return super(
    40             NigeriaApplicantsExporter, self).mangle_value(
     40            NigeriaApplicantExporter, self).mangle_value(
    4141            value, name, context=context)
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/tests/test_browser.py

    r11739 r12080  
    4040from waeup.kofa.interfaces import IBatchProcessor
    4141from kofacustom.nigeria.testing import FunctionalLayer
    42 from kofacustom.nigeria.applicants.export import NigeriaApplicantsExporter
     42from kofacustom.nigeria.applicants.export import NigeriaApplicantExporter
    4343from kofacustom.nigeria.applicants.batching import NigeriaApplicantProcessor
    4444
     
    320320        return
    321321
    322 class ApplicantsExporterTest(ApplicantImportExportSetup):
     322class ApplicantExporterTest(ApplicantImportExportSetup):
    323323
    324324    layer = FunctionalLayer
    325325
    326326    def setUp(self):
    327         super(ApplicantsExporterTest, self).setUp()
     327        super(ApplicantExporterTest, self).setUp()
    328328        self.outfile = os.path.join(self.workdir, 'myoutput.csv')
    329329        self.cat = getUtility(ICatalog, name='applicants_catalog')
     
    357357        # set values we can expect in export file
    358358        self.applicant = self.setup_applicant(self.applicant)
    359         exporter = NigeriaApplicantsExporter()
     359        exporter = NigeriaApplicantExporter()
    360360        exporter.export_all(self.app, self.outfile)
    361361        result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.