Changeset 9376 for main


Ignore:
Timestamp:
21 Oct 2012, 21:04:58 (12 years ago)
Author:
Henrik Bettermann
Message:

Do not show email address on slips. Issoufou wrote:

On all pdf slips is to avoid garbing the email address by cafe and send funny mails to students to extort money.
Applicable to all Nigerian institutions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/browser.py

    r9249 r9376  
    3232    OnlinePaymentDisplayFormPage, OnlinePaymentAddFormPage,
    3333    OnlinePaymentBreadcrumb, ExportPDFPaymentSlipPage,
     34    ExportPDFCourseRegistrationSlipPage,
     35    ExportPDFBedTicketSlipPage,
    3436    StudentFilesUploadPage, emit_lock_message)
    3537from waeup.kofa.students.viewlets import (
     
    6971        'email', 'phone')
    7072
    71 
    7273class NigeriaStudentPersonalDisplayFormPage(StudentPersonalDisplayFormPage):
    7374    """ Page to display student personal data
     
    7778    form_fields['next_kin_address'].custom_widget = BytesDisplayWidget
    7879
    79 
    8080class NigeriaStudentPersonalEditFormPage(StudentPersonalEditFormPage):
    8181    """ Page to edit personal data
     
    8383    form_fields = grok.AutoFields(INigeriaStudentPersonal)
    8484
    85 
    8685class NigeriaStudentPersonalManageFormPage(StudentPersonalManageFormPage):
    8786    """ Page to edit personal data
     
    8988    form_fields = grok.AutoFields(INigeriaStudentPersonal)
    9089
    91 
    9290class NigeriaStudentClearanceDisplayFormPage(StudentClearanceDisplayFormPage):
    9391    """ Page to display student clearance data
     
    107105    """Deliver a PDF slip of the context.
    108106    """
     107    omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'sex', 'email')
    109108
    110109    @property
     
    158157        return False
    159158
     159class NigeriaExportPDFCourseRegistrationSlipPage(ExportPDFCourseRegistrationSlipPage):
     160    """Deliver a PDF slip of the context.
     161    """
     162    omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'sex', 'email')
     163
    160164class NigeriaOnlinePaymentDisplayFormPage(OnlinePaymentDisplayFormPage):
    161165    """ Page to view an online payment ticket
     
    180184    has to be neutralized here!
    181185    """
    182 
    183186    grok.name('fake_approve')
    184187    grok.require('waeup.managePortal')
     
    194197    form_fields['creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    195198    form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     199    omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'sex', 'email')
     200
     201class NigeriaExportPDFBedTicketSlipPage(ExportPDFBedTicketSlipPage):
     202    """Deliver a PDF slip of the context.
     203    """
     204    omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'sex', 'email')
    196205
    197206class StudentPassportActionButton(StudentPassportActionButton):
Note: See TracChangeset for help on using the changeset viewer.