Ignore:
Timestamp:
9 Feb 2017, 12:53:43 (8 years ago)
Author:
Henrik Bettermann
Message:

Replace ' - ' by linebreak.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students/reports
Files:
6 edited

Legend:

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

    r14517 r14528  
    4141        if not hod:
    4242            hod = 'Head of Department'
     43        dean = dean.replace(' - ', '<br />')
     44        hod = hod.replace(' - ', '<br />')
    4345        return [hod, dean]
    4446
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/raw_score_report.py

    r14517 r14528  
    3333        if not hod:
    3434            hod = 'Head of Department'
     35        dean = dean.replace(' - ', '<br />')
     36        hod = hod.replace(' - ', '<br />')
    3537        return [hod, dean]
    3638
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/session_results_presentation.py

    r14517 r14528  
    5757        if not examiner:
    5858            examiner = 'External Examiner'
     59        dean = dean.replace(' - ', '<br />')
     60        hod = hod.replace(' - ', '<br />')
     61        examiner = examiner.replace(' - ', '<br />')
    5962        return [hod, examiner, dean]
    6063
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_level_report.py

    r14517 r14528  
    3636    def test_create_pdf(self):
    3737        self.student['studycourse']['100']['Course1'].ca = 0
    38         self.app['faculties']['fac1'].officer_1 = 'Rosa Moonshine (Dean of Faculty)'
    39         self.app['faculties']['fac1']['dep1'].officer_1 = 'Amalia Sunshine (Head of Department)'
     38        self.app['faculties']['fac1'].officer_1 = 'Rosa Moonshine - Dean of Faculty'
     39        self.app['faculties']['fac1']['dep1'].officer_1 = 'Amalia Sunshine - Head of Department'
    4040        report = CustomLevelReport('fac1', 'dep1', 'CERT1', 2010, 100)
    4141        result = report.create_pdf('JOB_ID')
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_raw_score_report.py

    r14517 r14528  
    6161        self.app['faculties']['fac1']['dep1'].certificates[
    6262            'CERT1'].addCertCourse(self.course, level=100)
    63         self.app['faculties']['fac1'].officer_1 = 'Rosa Moonshine (Dean of Faculty)'
    64         self.app['faculties']['fac1']['dep1'].officer_1 = 'Amalia Sunshine (Head of Department)'
     63        self.app['faculties']['fac1'].officer_1 = 'Rosa Moonshine - Dean of Faculty'
     64        self.app['faculties']['fac1']['dep1'].officer_1 = 'Amalia Sunshine - Head of Department'
    6565        studylevel = createObject('waeup.StudentStudyLevel')
    6666        studylevel.level = 200
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_session_results_presentation.py

    r14517 r14528  
    4242    def test_create_pdf(self):
    4343        self.certificate.degree = 'BA(FS)'
    44         self.app['faculties']['fac1'].officer_1 = 'Rosa Moonshine (Dean of Faculty)'
    45         self.app['faculties']['fac1']['dep1'].officer_1 = 'Amalia Sunshine (Head of Department)'
    46         self.app['faculties']['fac1']['dep1'].officer_2 = 'Theresa Starbright (External Examiner)'
     44        self.app['faculties']['fac1'].officer_1 = 'Rosa Moonshine - Dean of Faculty'
     45        self.app['faculties']['fac1']['dep1'].officer_1 = 'Amalia Sunshine - Head of Department'
     46        self.app['faculties']['fac1']['dep1'].officer_2 = 'Theresa Starbright - External Examiner'
    4747        report = CustomSessionResultsPresentation('fac1', 'dep1', 'CERT1', 2010, 100)
    4848        result = report.create_pdf('JOB_ID')
Note: See TracChangeset for help on using the changeset viewer.