Changeset 12879 for main


Ignore:
Timestamp:
23 Apr 2015, 21:13:40 (10 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes in base package.

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  
    279279
    280280    form_fields = grok.AutoFields(ICustomStudentStudyLevel).omit(
    281         'level_verdict', 'gpa')
     281        'level_verdict', 'gpa', 'level')
    282282
    283283    def update(self):
  • main/waeup.uniben/trunk/src/waeup/uniben/students/export.py

    r12856 r12879  
    2929    NigeriaStudentStudyLevelExporter,
    3030    NigeriaCourseTicketExporter,
    31     NigeriaStudentPaymentsExporter)
     31    NigeriaStudentPaymentExporter)
    3232from waeup.kofa.utils.helpers import iface_names
    3333
     
    5353    #: Fieldnames considered by this exporter
    5454    fields = tuple(sorted(iface_names(
    55         ICustomStudentStudyLevel) + ['level'])) + (
     55        ICustomStudentStudyLevel))) + (
    5656        'student_id', 'number_of_tickets','certcode')
    5757
     
    6464        'certcode', 'display_fullname')
    6565
    66 class CustomStudentPaymentsExporter(NigeriaStudentPaymentsExporter):
     66class CustomStudentPaymentExporter(NigeriaStudentPaymentExporter):
    6767    """Exporter for OnlinePayment instances.
    6868    """
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_export.py

    r12856 r12879  
    77from waeup.uniben.utils.utils import CustomKofaUtils
    88from waeup.uniben.students.export import (
    9     CustomStudentExporter, CustomStudentPaymentsExporter)
     9    CustomStudentExporter, CustomStudentPaymentExporter)
    1010from waeup.uniben.testing import FunctionalLayer
    1111
     
    7373        return
    7474
    75 class CustomStudentPaymentsExporterTest(StudentImportExportSetup):
     75class CustomStudentPaymentExporterTest(StudentImportExportSetup):
    7676
    7777    layer = FunctionalLayer
    7878
    7979    def setUp(self):
    80         super(CustomStudentPaymentsExporterTest, self).setUp()
     80        super(CustomStudentPaymentExporterTest, self).setUp()
    8181        self.setup_for_export()
    8282        return
     
    8484    def test_ifaces(self):
    8585        # make sure we fullfill interface contracts
    86         obj = CustomStudentPaymentsExporter()
     86        obj = CustomStudentPaymentExporter()
    8787        verifyObject(ICSVExporter, obj)
    88         verifyClass(ICSVExporter, CustomStudentPaymentsExporter)
     88        verifyClass(ICSVExporter, CustomStudentPaymentExporter)
    8989        return
    9090
     
    9595        self.student['payments']['my-payment'].r_company = 'interswatch'
    9696        self.student['payments']['my-payment'].r_card_num = '789'
    97         exporter = CustomStudentPaymentsExporter()
     97        exporter = CustomStudentPaymentExporter()
    9898        exporter.export_all(self.app, self.outfile)
    9999        result = open(self.outfile, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.