- Timestamp:
- 13 Jul 2024, 06:40:06 (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/browser.py
r17832 r17843 35 35 StudentTriggerTransitionFormPage, 36 36 ExportPDFAdmissionSlip, 37 ExportAttendanceSlip, 37 38 PaymentsManageFormPage, msave, emit_lock_message) 38 39 from waeup.kofa.students.interfaces import IStudentsUtils, ICourseTicket, IStudentBase … … 302 303 note=self.note) 303 304 304 class CustomExportPDFAdmissionSlip(ExportPDFAdmissionSlip): 305 grok.require('waeup.managePortal') 306 305 306 class CustomExportAttendanceSlip(ExportAttendanceSlip): 307 """ 308 """ 309 310 #def _signatures(self): 311 # return ([_('Student Signature')], 312 # [_('Clearance Officer Signature')]) 313 314 @property 315 def note(self): 316 return """ 317 318 319 Faculty: __________________________________________________________ 320 321 Department: ______________________________________________________ 322 323 Date of Examination: _______________________________________________ 324 325 Time of Examination: _______________________________________________ 326 327 Venue of Examination: ______________________________________________ 328 329 Names of Supervisors: 330 331 ______________________________________________ 332 333 ______________________________________________ 334 335 ______________________________________________ 336 337 ______________________________________________ 338 339 ______________________________________________ 340 """ 341 342 def render(self): 343 lecturers = [i['user_title'] for i in self.getUsersWithLocalRoles() 344 if i['local_role'] == 'waeup.local.Lecturer'] 345 lecturers = ', '.join(lecturers) 346 students_utils = getUtility(IStudentsUtils) 347 return students_utils.renderPDFCourseticketsOverview( 348 self, 'attendance', self.current_academic_session, 349 self.data(self.current_academic_session), 350 lecturers, '', 65, self.note)
Note: See TracChangeset for help on using the changeset viewer.