Changeset 9957
- Timestamp:
- 15 Feb 2013, 13:31:58 (12 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
r9952 r9957 1134 1134 1135 1135 @property 1136 def content_title_3(self): 1137 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 1138 return translate(_('Level Courses'), 'waeup.kofa', 1139 target_language=portal_language) 1140 1141 @property 1136 1142 def label(self): 1137 1143 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE … … 1163 1169 [value for value in self.context.values() if value.semester == 2], 1164 1170 key=lambda value: str(value.semester) + value.code) 1171 tabledata_3 = sorted( 1172 [value for value in self.context.values() if value.semester == 3], 1173 key=lambda value: str(value.semester) + value.code) 1165 1174 tableheader = [(Code,'code', 2.5), 1166 1175 (Title,'title', 5), … … 1178 1187 tabledata_1=tabledata_1, 1179 1188 tableheader_2=tableheader, 1180 tabledata_2=tabledata_2 1189 tabledata_2=tabledata_2, 1190 tableheader_3=tableheader, 1191 tabledata_3=tabledata_3 1181 1192 ) 1182 1193 -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r9949 r9957 596 596 tableheader_1=None, tabledata_1=None, 597 597 tableheader_2=None, tabledata_2=None, 598 tableheader_3=None, tabledata_3=None, 598 599 note=None, signatures=None, sigs_in_footer=(), 599 600 show_scans=True, topMargin=1.5): … … 662 663 data.append(contenttable) 663 664 665 # Insert 3rd content table (optionally on second page) 666 if tabledata_3 and tableheader_3: 667 #data.append(PageBreak()) 668 #data.append(Spacer(1, 20)) 669 data.append(Paragraph(view.content_title_3, HEADING_STYLE)) 670 data.append(Spacer(1, 8)) 671 contenttable = render_table_data(tableheader_3,tabledata_3) 672 data.append(contenttable) 673 664 674 # Insert signatures 665 675 if signatures and not sigs_in_footer:
Note: See TracChangeset for help on using the changeset viewer.