Ignore:
Timestamp:
1 Jun 2013, 06:28:59 (12 years ago)
Author:
Henrik Bettermann
Message:

Adjust to base package.

Increase title column width.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py

    r10102 r10269  
    2626    CourseTicketAddFormPage,
    2727    StudyLevelDisplayFormPage,
    28     ExportPDFCourseRegistrationSlipPage)
     28    )
    2929from kofacustom.nigeria.students.browser import (
    3030    NigeriaOnlinePaymentDisplayFormPage,
    3131    NigeriaOnlinePaymentAddFormPage,
    32     NigeriaExportPDFPaymentSlipPage)
     32    NigeriaExportPDFPaymentSlipPage,
     33    NigeriaExportPDFCourseRegistrationSlipPage
     34    )
    3335from waeup.aaue.students.interfaces import (
    3436    ICustomStudentOnlinePayment,
     
    7173
    7274class CustomExportPDFCourseRegistrationSlipPage(
    73     ExportPDFCourseRegistrationSlipPage):
     75    NigeriaExportPDFCourseRegistrationSlipPage):
    7476    """Deliver a PDF slip of the context.
    7577    """
     
    7880        'level_session', 'level_verdict',
    7981        'validated_by', 'validation_date', 'gpa')
     82
     83    omit_fields = ('password', 'suspended', 'suspended_comment',
     84        'phone', 'adm_code', 'sex', 'email', 'date_of_birth', 'department')
    8085
    8186    @property
     
    121126        Score = translate('Score', 'waeup.kofa', target_language=portal_language)
    122127        Grade = translate('Grade', 'waeup.kofa', target_language=portal_language)
    123         Signature = translate(_('Course Lecturer\'s Signature'), 'waeup.aaue',
     128        Signature = translate(_('Lecturer\'s Signature'), 'waeup.aaue',
    124129            target_language=portal_language)
    125130        studentview = StudentBasePDFFormPage(self.context.student,
     
    133138            key=lambda value: str(value.semester) + value.code)
    134139        tableheader = [(Code,'code', 2.0),
    135                          (Title,'title', 5),
     140                         (Title,'title', 7),
    136141                         (Cred, 'credits', 1.5),
    137142                         (Score, 'score', 1.4),
     
    153158            tabledata_2=tabledata_2,
    154159            signatures=self._signatures(),
    155             topMargin=topMargin
     160            topMargin=topMargin,
     161            omit_fields=self.omit_fields
    156162            )
Note: See TracChangeset for help on using the changeset viewer.