Changeset 13963
- Timestamp:
- 21 Jun 2016, 06:30:07 (9 years ago)
- 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 98 98 % self.p_id) 99 99 self.assertEqual(self.browser.contents, 100 'PayeeName= Anna Tester~'100 'PayeeName=TESTER, Anna~' 101 101 'Faculty=fac1~' 102 102 'Department=dep1~' … … 181 181 % self.p_id) 182 182 self.assertEqual(self.browser.contents, 183 'PayeeName= Anna Tester~'183 'PayeeName=TESTER, Anna~' 184 184 'Faculty=fac1~' 185 185 'Department=dep1~' … … 213 213 % self.p_id) 214 214 self.assertEqual(self.browser.contents, 215 'PayeeName= Anna Tester~'215 'PayeeName=TESTER, Anna~' 216 216 'Faculty=fac1~' 217 217 'Department=dep1~' … … 291 291 % self.p_id) 292 292 self.assertEqual(self.browser.contents, 293 'PayeeName= John Anthony Tester~'293 'PayeeName=TESTER, John Anthony~' 294 294 'Faculty=N/A~' 295 295 'Department=N/A~' -
main/waeup.aaue/trunk/src/waeup/aaue/locales/en/LC_MESSAGES/waeup.kofa.po
r13866 r13963 107 107 msgid "Registration Number or Applicant Id:" 108 108 msgstr "JAMB Reg. No. or Applicant Id:" 109 110 msgid "Level Report" 111 msgstr "Summary of Results" 112 113 msgid "Create level report" 114 msgstr "Create summary of results" -
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r13946 r13963 649 649 code=(self.context.code, self.context.code) 650 650 ) 651 header = [[_('Matric No.'), 651 header = [[_(''), 652 _('Matric No.'), 652 653 _('Reg. No.'), 653 654 _('Fullname'), 654 655 _('Status'), 655 _('Course of 656 _('Course of\nStudies'), 656 657 _('Level'), 657 _('Score'), 658 _('CA') ],] 658 _('Exam\nScore'), 659 _('CA'), 660 _('Total'), 661 _('Grade'), 662 ],] 659 663 tickets = [] 664 no = 1 660 665 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, 662 672 ticket.student.reg_number, 663 673 ticket.student.display_fullname, … … 665 675 ticket.student.certcode, 666 676 ticket.level, 677 ticket.ca, 667 678 ticket.score, 668 ticket.ca] 679 total, 680 ticket.grade, 681 ] 669 682 tickets.append(row) 683 no += 1 670 684 return header + sorted(tickets, key=lambda value: value[0]) 671 685 -
main/waeup.aaue/trunk/src/waeup/aaue/students/export.py
r13895 r13963 89 89 90 90 fields = ('matric_number', 'student_id', 91 'level', 'code', 'level_session', ' score', 'ca')91 'level', 'code', 'level_session', 'ca', 'score') 92 92 -
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_student_level_statistics.py
r13870 r13963 7 7 from waeup.kofa.students.tests.test_catalog import CatalogTestSetup 8 8 from waeup.kofa.students.tests.test_browser import StudentsFullSetup 9 from waeup.kofa.tests.test_async import FunctionalAsyncTestCase10 9 from waeup.kofa.browser.tests.test_pdf import samples_dir 11 10 -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r13937 r13963 767 767 self.browser.getControl(name="scores:list", index=0).value = 'abc' 768 768 self.browser.getControl("Update scores").click() 769 self.assertTrue('Error: Score(s) and CA(s) of Anna Testerhave not be updated.'769 self.assertTrue('Error: Score(s) and CA(s) of TESTER, Anna have not be updated.' 770 770 in self.browser.contents) 771 771 # Scores can be removed. -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_export.py
r13795 r13963 167 167 'display_fullname,matric_number\r\n' 168 168 '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' 170 170 ) 171 171 return -
main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py
r13870 r13963 18 18 """Customize general helper utilities for Kofa. 19 19 """ 20 21 import string 20 22 from kofacustom.nigeria.utils.utils import NigeriaKofaUtils 21 23 … … 161 163 'Institute of Education': ('dp_ft'), 162 164 } 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.