Ignore:
Timestamp:
14 Dec 2014, 21:48:41 (10 years ago)
Author:
Henrik Bettermann
Message:

Repair package. Hopefully we'll never need this package.

Location:
main/kofacustom.pcn/trunk/src/kofacustom/pcn/applicants
Files:
3 edited

Legend:

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

    r11832 r12234  
    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.pcn.applicants.interfaces import ICustomApplicant
    2424
    25 class CustomApplicantsExporter(ApplicantsExporter):
     25class CustomApplicantExporter(ApplicantExporter):
    2626    """Exporter for Custom Applicants.
    2727    """
  • main/kofacustom.pcn/trunk/src/kofacustom/pcn/applicants/interfaces.py

    r11843 r12234  
    5151    state, depending on use-case.
    5252    """
    53 
    54     def writeLogMessage(view, comment):
    55         """Adds an INFO message to the log file
    56         """
    57 
    58     def createStudent():
    59         """Create a student object from applicatnt data
    60         and copy applicant object.
    61         """
    6253
    6354    history = Attribute('Object history, a list of messages')
  • main/kofacustom.pcn/trunk/src/kofacustom/pcn/applicants/tests/test_browser.py

    r11832 r12234  
    2929from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup
    3030from waeup.kofa.applicants.tests.test_batching import ApplicantImportExportSetup
    31 from kofacustom.pcn.applicants.export import CustomApplicantsExporter
     31from kofacustom.pcn.applicants.export import CustomApplicantExporter
    3232from kofacustom.pcn.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')
     
    7676        # set values we can expect in export file
    7777        self.applicant = self.setup_applicant(self.applicant)
    78         exporter = CustomApplicantsExporter()
     78        exporter = CustomApplicantExporter()
    7979        exporter.export_all(self.app, self.outfile)
    8080        result = open(self.outfile, 'rb').read()
     
    110110        num_succ, num_fail, finished_path, failed_path = result
    111111        #content = open(failed_path).read()
     112
    112113        self.assertEqual(num_succ,1)
    113114        self.assertEqual(num_fail,0)
Note: See TracChangeset for help on using the changeset viewer.