Changeset 15982 for main/waeup.fceokene/trunk/src
- Timestamp:
- 4 Feb 2020, 13:52:28 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/browser.py
r15981 r15982 212 212 grok.name('examination_clearance_slip.pdf') 213 213 214 form_fields = grok.AutoFields(ICustomStudentStudyLevel).omit( 215 'gpa', 'transcript_remark', 'total_credits', 'level_verdict') 214 form_fields = None 215 216 omit_fields = ( 217 'password', 'suspended', 'phone', 'date_of_birth', 218 'parents_email', 'current_mode', 'entry_session', 219 'adm_code', 'sex', 'suspended_comment', 220 'flash_notice') 216 221 217 222 @property 218 223 def label(self): 219 224 return '%s Examination Clearance' % self.context.level_session 225 226 @property 227 def title(self): 228 return '' 220 229 221 230 def update(self): … … 228 237 portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE 229 238 Code = translate('Code', 'waeup.kofa', target_language=portal_language) 230 Title = translate('Title', 'waeup.kofa', target_language=portal_language)231 Dept = translate('Dept.', 'waeup.kofa', target_language=portal_language)232 Faculty = translate('Faculty', 'waeup.kofa', target_language=portal_language)233 Cred = translate(_('Credits'), 'waeup.uniben', target_language=portal_language)234 Grade = translate('Grade', 'waeup.kofa', target_language=portal_language)239 #Title = translate('Title', 'waeup.kofa', target_language=portal_language) 240 #Dept = translate('Dept.', 'waeup.kofa', target_language=portal_language) 241 #Faculty = translate('Faculty', 'waeup.kofa', target_language=portal_language) 242 #Cred = translate(_('Credits'), 'waeup.uniben', target_language=portal_language) 243 #Grade = translate('Grade', 'waeup.kofa', target_language=portal_language) 235 244 studentview = StudentBasePDFFormPage(self.context.student, 236 245 self.request, self.omit_fields) … … 244 253 key=lambda value: str(value.semester) + value.code)) 245 254 tableheader.append([(Code,'code', 2.5), 246 (Title,'title', 5), 247 (Dept,'dcode', 1.5), (Faculty,'fcode', 1.5), 248 (Cred, 'credits', 1.5), 255 #(Title,'title', 5), 256 #(Dept,'dcode', 1.5), (Faculty,'fcode', 1.5), 257 #(Cred, 'credits', 1.5), 258 ('Signature','sig', 10), 249 259 ]) 250 260 return students_utils.renderPDF(
Note: See TracChangeset for help on using the changeset viewer.