Changeset 9141 for main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
- Timestamp:
- 1 Sep 2012, 07:15:42 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r9069 r9141 117 117 #data.append([Spacer(1, 12)]) 118 118 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 119 120 f_label = formatted_label(size=12) % _('Name') 121 f_label = Paragraph(f_label, style["Normal"]) 122 f_text = formatted_text(studentview.context.display_fullname, size=12) 123 f_text = Paragraph(f_text, style["Normal"]) 124 data_right.append([f_label,f_text]) 125 119 126 for widget in studentview.widgets: 120 if widget.name == 'form.adm_code':127 if 'name' in widget.name: 121 128 continue 122 129 f_label = formatted_label(size=12) % translate( … … 127 134 f_text = Paragraph(f_text, style["Normal"]) 128 135 data_right.append([f_label,f_text]) 136 137 if hasattr(studentview.context, 'certcode'): 138 f_label = formatted_label(size=12) % _('Study Course') 139 f_label = Paragraph(f_label, style["Normal"]) 140 f_text = formatted_text(studentview.context.certcode, size=12) 141 f_text = Paragraph(f_text, style["Normal"]) 142 data_right.append([f_label,f_text]) 143 129 144 table_left = Table(data_left,style=SLIP_STYLE) 130 145 table_right = Table(data_right,style=SLIP_STYLE, colWidths=[5*cm, 6*cm])
Note: See TracChangeset for help on using the changeset viewer.