Ignore:
Timestamp:
21 Jun 2016, 06:30:07 (8 years ago)
Author:
Henrik Bettermann
Message:

Resolve ticket #228:

  1. The first column should be the Serial number.
  2. Under the column for Full name, surname should come first in capital letter with a coma before the other names.
  3. The heading for ‘score’ column should be renamed ‘exam score’.
  4. CA column should come before exam score column
  5. The column for Total should be added after exam score column.
  6. Extra column for letter grade should come after the ‘total’ column.
Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/etranzact/tests.py

    r13888 r13963  
    9898            % self.p_id)
    9999        self.assertEqual(self.browser.contents,
    100             'PayeeName=Anna Tester~'
     100            'PayeeName=TESTER, Anna~'
    101101            'Faculty=fac1~'
    102102            'Department=dep1~'
     
    181181            % self.p_id)
    182182        self.assertEqual(self.browser.contents,
    183             'PayeeName=Anna Tester~'
     183            'PayeeName=TESTER, Anna~'
    184184            'Faculty=fac1~'
    185185            'Department=dep1~'
     
    213213            % self.p_id)
    214214        self.assertEqual(self.browser.contents,
    215             'PayeeName=Anna Tester~'
     215            'PayeeName=TESTER, Anna~'
    216216            'Faculty=fac1~'
    217217            'Department=dep1~'
     
    291291            % self.p_id)
    292292        self.assertEqual(self.browser.contents,
    293             'PayeeName=John Anthony Tester~'
     293            'PayeeName=TESTER, John Anthony~'
    294294            'Faculty=N/A~'
    295295            'Department=N/A~'
  • main/waeup.aaue/trunk/src/waeup/aaue/locales/en/LC_MESSAGES/waeup.kofa.po

    r13866 r13963  
    107107msgid "Registration Number or Applicant Id:"
    108108msgstr "JAMB Reg. No. or Applicant Id:"
     109
     110msgid "Level Report"
     111msgstr "Summary of Results"
     112
     113msgid "Create level report"
     114msgstr "Create summary of results"
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py

    r13946 r13963  
    649649            code=(self.context.code, self.context.code)
    650650            )
    651         header = [[_('Matric No.'),
     651        header = [[_(''),
     652                   _('Matric No.'),
    652653                   _('Reg. No.'),
    653654                   _('Fullname'),
    654655                   _('Status'),
    655                    _('Course of Studies'),
     656                   _('Course of\nStudies'),
    656657                   _('Level'),
    657                    _('Score'),
    658                    _('CA') ],]
     658                   _('Exam\nScore'),
     659                   _('CA'),
     660                   _('Total'),
     661                   _('Grade'),
     662                   ],]
    659663        tickets = []
     664        no = 1
    660665        for ticket in list(coursetickets):
    661             row = [ticket.student.matric_number,
     666            if None in (ticket.score, ticket.ca):
     667                total = 'n/a'
     668            else:
     669                total = ticket.score + ticket.ca
     670            row = [no,
     671                  ticket.student.matric_number,
    662672                  ticket.student.reg_number,
    663673                  ticket.student.display_fullname,
     
    665675                  ticket.student.certcode,
    666676                  ticket.level,
     677                  ticket.ca,
    667678                  ticket.score,
    668                   ticket.ca]
     679                  total,
     680                  ticket.grade,
     681                  ]
    669682            tickets.append(row)
     683            no += 1
    670684        return header + sorted(tickets, key=lambda value: value[0])
    671685
  • main/waeup.aaue/trunk/src/waeup/aaue/students/export.py

    r13895 r13963  
    8989
    9090    fields = ('matric_number', 'student_id',
    91               'level', 'code', 'level_session', 'score', 'ca')
     91              'level', 'code', 'level_session', 'ca', 'score')
    9292
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_student_level_statistics.py

    r13870 r13963  
    77from waeup.kofa.students.tests.test_catalog import CatalogTestSetup
    88from waeup.kofa.students.tests.test_browser import StudentsFullSetup
    9 from waeup.kofa.tests.test_async import FunctionalAsyncTestCase
    109from waeup.kofa.browser.tests.test_pdf import samples_dir
    1110
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r13937 r13963  
    767767        self.browser.getControl(name="scores:list", index=0).value = 'abc'
    768768        self.browser.getControl("Update scores").click()
    769         self.assertTrue('Error: Score(s) and CA(s) of Anna Tester have not be updated.'
     769        self.assertTrue('Error: Score(s) and CA(s) of TESTER, Anna have not be updated.'
    770770            in self.browser.contents)
    771771        # Scores can be removed.
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_export.py

    r13795 r13963  
    167167            'display_fullname,matric_number\r\n'
    168168            '1,,1,CRS1,100,DEP1,FAC1,100,2012,0,100,,2,Course 1,A111111,CERT1,'
    169             'Anna M. Tester,234\r\n'
     169            '"TESTER, Anna M.",234\r\n'
    170170            )
    171171        return
  • main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py

    r13870 r13963  
    1818"""Customize general helper utilities for Kofa.
    1919"""
     20
     21import string
    2022from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
    2123
     
    161163        'Institute of Education': ('dp_ft'),
    162164        }
     165
     166    def fullname(self, firstname, lastname, middlename=None):
     167        """Construct fullname.
     168        """
     169        try:
     170            lastname = lastname.upper()
     171        except AttributeError:
     172            pass
     173        # We do not necessarily have the middlename attribute
     174        if middlename:
     175            givennames = '%s %s' % (firstname, middlename)
     176        else:
     177            givennames = '%s' % firstname
     178        givennames = string.capwords(
     179            givennames.replace('-', ' - ')).replace(' - ', '-')
     180        fullname = '%s, %s' % (lastname, givennames)
     181        if '<' in fullname:
     182            return 'XXX'
     183        return fullname
Note: See TracChangeset for help on using the changeset viewer.