- Timestamp:
- 28 Nov 2014, 08:59:38 (10 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/export.py
r9582 r12080 20 20 import grok 21 21 from waeup.kofa.applicants.interfaces import IApplicantBaseData 22 from waeup.kofa.applicants.export import Applicant sExporter22 from waeup.kofa.applicants.export import ApplicantExporter 23 23 from kofacustom.nigeria.applicants.interfaces import ( 24 24 INigeriaUGApplicant, INigeriaPGApplicant) 25 25 26 class NigeriaApplicant sExporter(ApplicantsExporter):26 class NigeriaApplicantExporter(ApplicantExporter): 27 27 """Exporter for Nigeria Applicants. 28 28 """ … … 38 38 value = [eval(entry.to_string()) for entry in value] 39 39 return super( 40 NigeriaApplicant sExporter, self).mangle_value(40 NigeriaApplicantExporter, self).mangle_value( 41 41 value, name, context=context) -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/tests/test_browser.py
r11739 r12080 40 40 from waeup.kofa.interfaces import IBatchProcessor 41 41 from kofacustom.nigeria.testing import FunctionalLayer 42 from kofacustom.nigeria.applicants.export import NigeriaApplicant sExporter42 from kofacustom.nigeria.applicants.export import NigeriaApplicantExporter 43 43 from kofacustom.nigeria.applicants.batching import NigeriaApplicantProcessor 44 44 … … 320 320 return 321 321 322 class Applicant sExporterTest(ApplicantImportExportSetup):322 class ApplicantExporterTest(ApplicantImportExportSetup): 323 323 324 324 layer = FunctionalLayer 325 325 326 326 def setUp(self): 327 super(Applicant sExporterTest, self).setUp()327 super(ApplicantExporterTest, self).setUp() 328 328 self.outfile = os.path.join(self.workdir, 'myoutput.csv') 329 329 self.cat = getUtility(ICatalog, name='applicants_catalog') … … 357 357 # set values we can expect in export file 358 358 self.applicant = self.setup_applicant(self.applicant) 359 exporter = NigeriaApplicant sExporter()359 exporter = NigeriaApplicantExporter() 360 360 exporter.export_all(self.app, self.outfile) 361 361 result = open(self.outfile, 'rb').read() -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/export.py
r11544 r12080 25 25 INigeriaStudentOnlinePayment) 26 26 from waeup.kofa.students.export import ( 27 Student sExporter,27 StudentExporter, 28 28 StudentStudyCourseExporter, 29 29 StudentStudyLevelExporter, … … 32 32 from waeup.kofa.utils.helpers import iface_names 33 33 34 class NigeriaStudent sExporter(StudentsExporter):34 class NigeriaStudentExporter(StudentExporter): 35 35 """Exporter for Students. 36 36 """ … … 46 46 value = [eval(entry.to_string()) for entry in value] 47 47 return super( 48 NigeriaStudent sExporter, self).mangle_value(48 NigeriaStudentExporter, self).mangle_value( 49 49 value, name, context=context) 50 50 -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py
r11780 r12080 8 8 from kofacustom.nigeria.utils.utils import NigeriaKofaUtils 9 9 from kofacustom.nigeria.students.export import ( 10 NigeriaStudent sExporter, NigeriaStudentPaymentsExporter)10 NigeriaStudentExporter, NigeriaStudentPaymentsExporter) 11 11 from kofacustom.nigeria.testing import FunctionalLayer 12 12 13 13 14 class NigeriaStudent sExporterTest(StudentImportExportSetup):14 class NigeriaStudentExporterTest(StudentImportExportSetup): 15 15 16 16 layer = FunctionalLayer 17 17 18 18 def setUp(self): 19 super(NigeriaStudent sExporterTest, self).setUp()19 super(NigeriaStudentExporterTest, self).setUp() 20 20 self.setup_for_export() 21 21 result_entry = ResultEntry( … … 33 33 def test_ifaces(self): 34 34 # make sure we fullfill interface contracts 35 obj = NigeriaStudent sExporter()35 obj = NigeriaStudentExporter() 36 36 verifyObject(ICSVExporter, obj) 37 verifyClass(ICSVExporter, NigeriaStudent sExporter)37 verifyClass(ICSVExporter, NigeriaStudentExporter) 38 38 return 39 39 … … 43 43 # set values we can expect in export file 44 44 self.setup_student(self.student) 45 exporter = NigeriaStudent sExporter()45 exporter = NigeriaStudentExporter() 46 46 exporter.export_all(self.app, self.outfile) 47 47 result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.