- Timestamp:
- 30 Jul 2013, 07:53:58 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r10280 r10442 131 131 self.request, self.omit_fields) 132 132 students_utils = getUtility(IStudentsUtils) 133 tabledata_1 = sorted( 134 [value for value in self.context.values() if value.semester == 1], 135 key=lambda value: str(value.semester) + value.code) 136 tabledata_2 = sorted( 137 [value for value in self.context.values() if value.semester == 2], 138 key=lambda value: str(value.semester) + value.code) 139 tableheader = [(Code,'code', 2.0), 140 (Title,'title', 7), 141 (Cred, 'credits', 1.5), 142 (Score, 'score', 1.4), 143 (Grade, 'grade', 1.4), 144 (Signature, 'dummy', 3), 145 ] 133 134 tabledata = [] 135 tableheader = [] 136 contenttitle = [] 137 for i in range(1,7): 138 tabledata.append(sorted( 139 [value for value in self.context.values() if value.semester == i], 140 key=lambda value: str(value.semester) + value.code)) 141 tableheader.append([(Code,'code', 2.0), 142 (Title,'title', 7), 143 (Cred, 'credits', 1.5), 144 (Score, 'score', 1.4), 145 (Grade, 'grade', 1.4), 146 (Signature, 'dummy', 3), 147 ]) 146 148 if len(self.label.split('\n')) == 3: 147 149 topMargin = 1.9 … … 153 155 self, 'course_registration_slip.pdf', 154 156 self.context.student, studentview, 155 tableheader_1=tableheader, 156 tabledata_1=tabledata_1, 157 tableheader_2=tableheader, 158 tabledata_2=tabledata_2, 157 tableheader=tableheader, 158 tabledata=tabledata, 159 159 signatures=self._signatures(), 160 160 topMargin=topMargin,
Note: See TracChangeset for help on using the changeset viewer.