- Timestamp:
- 2 Aug 2024, 19:10:34 (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/fileviewlets.py
r16609 r17867 37 37 StudentBaseDisplayFormPage, StudentBaseManageFormPage, 38 38 StudentClearanceDisplayFormPage, StudentClearanceManageFormPage, 39 ExportPDFClearanceSlip, StudentFilesUploadPage, StudentSignatureUploadPage) 39 ExportPDFClearanceSlip, StudentFilesUploadPage, StudentSignatureUploadPage, 40 StudentFinalClearanceUploadPage) 40 41 41 42 grok.context(IKofaObject) # Make IKofaObject the default context … … 114 115 return kofa_utils.MAX_PASSPORT_SIZE 115 116 117 class PassportUploadEdit(PassportUploadManage): 118 """Passport upload viewlet for students. 119 """ 120 grok.view(StudentFilesUploadPage) 121 grok.require('waeup.uploadStudentFile') 116 122 117 123 class SignatureDisplay(StudentFileDisplay): … … 125 131 label = _(u'Scanned Signature') 126 132 download_name = u'signature.jpg' 127 128 133 129 134 class SignatureUploadManage(StudentFileUpload): … … 137 142 label = _(u'Scanned Signature (jpg only)') 138 143 download_name = u'signature.jpg' 139 tab_redirect = '#tab2'140 144 141 145 @property … … 145 149 146 150 147 class PassportUploadEdit(PassportUploadManage):148 """Passport upload viewlet for students.149 """150 grok.view(StudentFilesUploadPage)151 grok.require('waeup.uploadStudentFile')152 153 154 151 class SignatureUploadEdit(SignatureUploadManage): 155 152 """Signature upload viewlet for students. … … 158 155 grok.require('waeup.uploadStudentFile') 159 156 157 158 class FinalClearanceDisplay(StudentFileDisplay): 159 """Final Clearance Routing Slip display viewlet. 160 """ 161 grok.order(4) 162 grok.context(IStudent) 163 grok.view(StudentBaseDisplayFormPage) 164 grok.require('waeup.viewStudent') 165 label = _(u'Scanned Final Clearance Routing Slip ') 166 download_name = u'routingslip' 167 168 169 class FinalClearanceUploadManage(StudentFileUpload): 170 """Final Clearance Routing Slip upload viewlet for officers. 171 """ 172 grok.order(4) 173 grok.context(IStudent) 174 grok.view(StudentBaseManageFormPage) 175 grok.require('waeup.manageStudent') 176 label = _(u'Scanned Final Clearance Routing Slip (pdf preferred)') 177 download_name = u'routingslip' 178 179 class FinalClearanceUploadEdit(FinalClearanceUploadManage): 180 """Final Clearance Form upload viewlet for students. 181 """ 182 grok.view(StudentFinalClearanceUploadPage) 183 grok.require('waeup.uploadStudentFile') 160 184 161 185 class BirthCertificateDisplay(StudentFileDisplay): … … 196 220 grok.context(IStudent) 197 221 222 class FinalClearance(StudentImage): 223 """Renders pdf slip. 224 """ 225 grok.name('routingslip') 226 download_name = u'routingslip' 227 198 228 class ApplicationSlipImage(StudentImage): 199 229 """Renders application slip scan.
Note: See TracChangeset for help on using the changeset viewer.