Changeset 13717


Ignore:
Timestamp:
18 Feb 2016, 12:41:17 (9 years ago)
Author:
Henrik Bettermann
Message:

Hide flash_notice on slips and adjust tests.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
2 edited

Legend:

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

    r13624 r13717  
    131131    def omit_fields(self):
    132132        omit_fields = ('password', 'suspended', 'suspended_comment',
    133                        'phone', 'adm_code', 'email', 'date_of_birth')
     133                       'phone', 'adm_code', 'email', 'date_of_birth',
     134                       'flash_notice')
    134135        if self.context.faccode == 'JUPEB':
    135136            omit_fields += ('faculty', 'department')
     
    184185        'date_of_birth', 'current_level',
    185186        'department', 'current_mode',
    186         'entry_session', 'matric_number', 'sex')
     187        'entry_session', 'matric_number', 'sex',
     188        'flash_notice')
    187189
    188190    form_fields = []
     
    503505
    504506    omit_fields = ('password', 'suspended', 'suspended_comment',
    505         'phone', 'adm_code', 'email', 'date_of_birth')
     507        'phone', 'adm_code', 'email', 'date_of_birth', 'flash_notice')
    506508
    507509    def render(self):
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_export.py

    r13624 r13717  
    5151            'emp_reason,emp_start,employer,employer2,'
    5252            'financial_clearance_date,financially_cleared_by,'
    53             'firstname,former_matric,'
     53            'firstname,flash_notice,former_matric,'
    5454            'fst_sit_date,fst_sit_fname,fst_sit_no,fst_sit_results,'
    5555            'fst_sit_type,hq2_degree,hq2_disc,hq2_matric_no,hq2_school,'
     
    6565            'current_level,current_session\r\nmy adm code,,,,'
    6666            '"[(\'printing_craft_practice\', \'A1\')]",my clr code,1981-02-04#,,,'
    67             'anna@sample.com,,,,,,,,,,,,,Anna,,,,,"[(\'printing_craft_practice\', \'A1\')]"'
     67            'anna@sample.com,,,,,,,,,,,,,Anna,,,,,,"[(\'printing_craft_practice\', \'A1\')]"'
    6868            ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,,'
    6969            '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,,123,,,,,'
Note: See TracChangeset for help on using the changeset viewer.