Changeset 15526 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 29 Jul 2019, 09:59:44 (5 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r15432 r15526 3680 3680 code=(self.context.code, self.context.code) 3681 3681 ) 3682 header = [[_('Student Id'), 3682 header = [[_('S/N'), 3683 _('Student Id'), 3683 3684 _('Matric No.'), 3684 3685 _('Level'), … … 3688 3689 ],] 3689 3690 tickets = [] 3690 for ticket in list(coursetickets): 3691 row = [ticket.student.student_id, 3691 sn = 1 3692 ctlist = sorted(list(coursetickets), 3693 key=lambda value: value.student.matric_number) 3694 for ticket in ctlist: 3695 row = [sn, 3696 ticket.student.student_id, 3692 3697 ticket.student.matric_number, 3693 3698 ticket.level, … … 3697 3702 ] 3698 3703 tickets.append(row) 3699 return header + sorted(tickets, key=lambda value: value[0]), None 3704 sn += 1 3705 return header + tickets, None 3700 3706 3701 3707 def render(self): … … 3707 3713 self, 'attendance', self.current_academic_session, 3708 3714 self.data(self.current_academic_session), 3709 lecturers, ' landscape', 90, self.note)3715 lecturers, '', 65, self.note) 3710 3716 3711 3717 class ExportJobContainerOverview(KofaPage): -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r15423 r15526 1048 1048 title = " ".join(view.context.title.split()) 1049 1049 ct = textwrap.fill(title, title_length) 1050 ft = title1051 if len(textwrap.wrap(title, title_length)) > 1:1052 ft = textwrap.wrap(title, title_length)[0] + ' ...'1050 ft = "" # title 1051 #if len(textwrap.wrap(title, title_length)) > 1: 1052 # ft = textwrap.wrap(title, title_length)[0] + ' ...' 1053 1053 doc_title = translate(_('${a} (${b})\nAcademic Session ${d}', 1054 1054 mapping = {'a':ct, … … 1059 1059 if name == 'coursetickets': 1060 1060 doc_title += _('\nCourse Tickets Overview') 1061 footer_title = translate(_('${a} (${b}) - ${d}', 1062 mapping = {'a':ft, 1063 'b':view.context.code, 1061 #footer_title = translate(_('${a} (${b}) - ${d}', 1062 # mapping = {'a':ft, 1063 # 'b':view.context.code, 1064 # 'd':session})) 1065 footer_title = translate(_('${b} - ${d}', 1066 mapping = {'b':view.context.code, 1064 1067 'd':session})) 1065 1068 author = '%s (%s)' % (view.request.principal.title,
Note: See TracChangeset for help on using the changeset viewer.