Changeset 12879 for main/waeup.uniben/trunk/src/waeup/uniben/students
- Timestamp:
- 23 Apr 2015, 21:13:40 (10 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r12856 r12879 279 279 280 280 form_fields = grok.AutoFields(ICustomStudentStudyLevel).omit( 281 'level_verdict', 'gpa' )281 'level_verdict', 'gpa', 'level') 282 282 283 283 def update(self): -
main/waeup.uniben/trunk/src/waeup/uniben/students/export.py
r12856 r12879 29 29 NigeriaStudentStudyLevelExporter, 30 30 NigeriaCourseTicketExporter, 31 NigeriaStudentPayment sExporter)31 NigeriaStudentPaymentExporter) 32 32 from waeup.kofa.utils.helpers import iface_names 33 33 … … 53 53 #: Fieldnames considered by this exporter 54 54 fields = tuple(sorted(iface_names( 55 ICustomStudentStudyLevel) + ['level'])) + (55 ICustomStudentStudyLevel))) + ( 56 56 'student_id', 'number_of_tickets','certcode') 57 57 … … 64 64 'certcode', 'display_fullname') 65 65 66 class CustomStudentPayment sExporter(NigeriaStudentPaymentsExporter):66 class CustomStudentPaymentExporter(NigeriaStudentPaymentExporter): 67 67 """Exporter for OnlinePayment instances. 68 68 """ -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_export.py
r12856 r12879 7 7 from waeup.uniben.utils.utils import CustomKofaUtils 8 8 from waeup.uniben.students.export import ( 9 CustomStudentExporter, CustomStudentPayment sExporter)9 CustomStudentExporter, CustomStudentPaymentExporter) 10 10 from waeup.uniben.testing import FunctionalLayer 11 11 … … 73 73 return 74 74 75 class CustomStudentPayment sExporterTest(StudentImportExportSetup):75 class CustomStudentPaymentExporterTest(StudentImportExportSetup): 76 76 77 77 layer = FunctionalLayer 78 78 79 79 def setUp(self): 80 super(CustomStudentPayment sExporterTest, self).setUp()80 super(CustomStudentPaymentExporterTest, self).setUp() 81 81 self.setup_for_export() 82 82 return … … 84 84 def test_ifaces(self): 85 85 # make sure we fullfill interface contracts 86 obj = CustomStudentPayment sExporter()86 obj = CustomStudentPaymentExporter() 87 87 verifyObject(ICSVExporter, obj) 88 verifyClass(ICSVExporter, CustomStudentPayment sExporter)88 verifyClass(ICSVExporter, CustomStudentPaymentExporter) 89 89 return 90 90 … … 95 95 self.student['payments']['my-payment'].r_company = 'interswatch' 96 96 self.student['payments']['my-payment'].r_card_num = '789' 97 exporter = CustomStudentPayment sExporter()97 exporter = CustomStudentPaymentExporter() 98 98 exporter.export_all(self.app, self.outfile) 99 99 result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.