Changeset 9704


Ignore:
Timestamp:
21 Nov 2012, 15:36:28 (12 years ago)
Author:
Henrik Bettermann
Message:

Adjust browser module to changes in base package.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students
Files:
2 edited

Legend:

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

    r9572 r9704  
    5858    """ Page to display student base data
    5959    """
    60     form_fields = grok.AutoFields(INigeriaStudentBase).omit('password', 'suspended')
     60    form_fields = grok.AutoFields(INigeriaStudentBase).omit(
     61        'password', 'suspended', 'suspended_comment')
    6162
    6263class NigeriaStudentBaseManageFormPage(StudentBaseManageFormPage):
     
    115116    """Deliver a PDF slip of the context.
    116117    """
    117     omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'email')
     118    omit_fields = ('password', 'suspended', 'suspended_comment',
     119        'phone', 'adm_code', 'email')
    118120
    119121    @property
     
    160162    """Deliver a PDF slip of the context.
    161163    """
    162     omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'sex', 'email')
     164    omit_fields = ('password', 'suspended', 'suspended_comment',
     165        'phone', 'adm_code', 'sex', 'email')
    163166
    164167class NigeriaOnlinePaymentDisplayFormPage(OnlinePaymentDisplayFormPage):
     
    197200    form_fields['creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    198201    form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    199     omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'sex', 'email')
     202    omit_fields = ('password', 'suspended', 'suspended_comment', 'phone',
     203        'adm_code', 'sex', 'email')
    200204
    201205class NigeriaExportPDFBedTicketSlipPage(ExportPDFBedTicketSlipPage):
    202206    """Deliver a PDF slip of the context.
    203207    """
    204     omit_fields = ('password', 'suspended', 'phone', 'adm_code', 'email')
     208    omit_fields = ('password', 'suspended', 'suspended_comment',
     209        'phone', 'adm_code', 'email')
    205210
    206211class StudentPassportActionButton(StudentPassportActionButton):
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py

    r9567 r9704  
    6060            'religion,scd_sit_date,scd_sit_fname,scd_sit_no,'
    6161            'scd_sit_results,scd_sit_type,sex,student_id,'
    62             'suspended,password,state,history,certcode,is_postgrad,'
     62            'suspended,suspended_comment,password,state,history,certcode,is_postgrad,'
    6363            'current_level,current_session\r\nmy adm code,,,,'
    6464            '"[(\'visual_art\', \'A1\')]",0,my clr code,1981-02-04#,,,'
     
    6666            ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,'
    6767            '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,123,,,,,'
    68             '"[(\'visual_art\', \'A1\')]",,f,A111111,0,,created,'
     68            '"[(\'visual_art\', \'A1\')]",,f,A111111,0,,,created,'
    6969            '[u\'2012-11-06 13:16:41 WAT - Record created by system\'],'
    7070            'CERT1,0,200,2012\r\n',
Note: See TracChangeset for help on using the changeset viewer.