Changeset 15526 for main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
- Timestamp:
- 29 Jul 2019, 09:59:44 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.