Changeset 18031 for main/waeup.uniben/trunk/src/waeup/uniben/students
- Timestamp:
- 6 Mar 2025, 03:01:33 (14 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py
r17904 r18031 473 473 grok.name('passport2') 474 474 download_name = u'passport2' 475 476 # ID Card 477 478 class IDCardDisplay(StudentFileDisplay): 479 """ID Card viewlet. 480 """ 481 grok.order(11) 482 grok.context(ICustomStudent) 483 grok.view(StudentBaseDisplayFormPage) 484 grok.require('waeup.viewStudent') 485 label = _(u'ID Card') 486 download_name = u'idcard.pdf' 487 488 class IDCardUploadManage(StudentFileUpload): 489 """ID Card upload viewlet for officers. 490 """ 491 grok.order(10) 492 grok.context(ICustomStudent) 493 grok.view(StudentBaseManageFormPage) 494 grok.require('waeup.manageStudent') 495 label = _(u'ID Card (pdf only)') 496 download_name = u'idcard.pdf' 497 498 class IDCard(StudentImage): 499 """Renders ID Card slip. 500 """ 501 grok.name('idcard.pdf') 502 download_name = u'idcard' 503 504 @property 505 def add_id(self): 506 return self.context.student_id
Note: See TracChangeset for help on using the changeset viewer.