Changeset 12449 for main/kofacustom.nigeria/trunk
- Timestamp:
- 12 Jan 2015, 11:11:25 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/viewlets.py
r12422 r12449 21 21 from waeup.kofa.students.interfaces import IStudentsUtils 22 22 from waeup.kofa.students.fileviewlets import ( 23 FileDisplay, FileUpload,Image)23 StudentFileDisplay, StudentFileUpload, StudentImage) 24 24 from waeup.kofa.students.browser import ExportPDFClearanceSlipPage 25 25 … … 37 37 # Acceptance Letter 38 38 39 class AcceptanceLetterDisplay( FileDisplay):39 class AcceptanceLetterDisplay(StudentFileDisplay): 40 40 """Acceptance Letter display viewlet. 41 41 """ … … 48 48 grok.view(ExportPDFClearanceSlipPage) 49 49 50 class AcceptanceLetterUpload( FileUpload):50 class AcceptanceLetterUpload(StudentFileUpload): 51 51 """AcceptanceLetter upload viewlet. 52 52 """ … … 58 58 tab_redirect = '?tab2' 59 59 60 class AcceptanceLetterImage( Image):60 class AcceptanceLetterImage(StudentImage): 61 61 """Renders acceptance letter scan. 62 62 """ … … 66 66 # LGA Identification 67 67 68 class LGAIdentificationDisplay( FileDisplay):68 class LGAIdentificationDisplay(StudentFileDisplay): 69 69 """LGA Identification display viewlet. 70 70 """ … … 77 77 grok.view(ExportPDFClearanceSlipPage) 78 78 79 class LGAIdentificationUpload( FileUpload):79 class LGAIdentificationUpload(StudentFileUpload): 80 80 """LGA Identification upload viewlet. 81 81 """ … … 86 86 download_name = u'lga_ident' 87 87 88 class LGAIdentificationImage( Image):88 class LGAIdentificationImage(StudentImage): 89 89 """Renders LGA Identification scan. 90 90 """ … … 94 94 # First Sitting Result 95 95 96 class FirstSittingResultDisplay( FileDisplay):96 class FirstSittingResultDisplay(StudentFileDisplay): 97 97 """First Sitting Result display viewlet. 98 98 """ … … 105 105 grok.view(ExportPDFClearanceSlipPage) 106 106 107 class FirstSittingResultUpload( FileUpload):107 class FirstSittingResultUpload(StudentFileUpload): 108 108 """First Sitting Result upload viewlet. 109 109 """ … … 114 114 download_name = u'fst_sit_scan' 115 115 116 class FirstSittingResultImage( Image):116 class FirstSittingResultImage(StudentImage): 117 117 """Renders First Sitting Result scan. 118 118 """ … … 122 122 # Second Sitting Result 123 123 124 class SecondSittingResultDisplay( FileDisplay):124 class SecondSittingResultDisplay(StudentFileDisplay): 125 125 """Second Sitting Result display viewlet. 126 126 """ … … 133 133 grok.view(ExportPDFClearanceSlipPage) 134 134 135 class SecondSittingResultUpload( FileUpload):135 class SecondSittingResultUpload(StudentFileUpload): 136 136 """Second Sitting Result upload viewlet. 137 137 """ … … 142 142 download_name = u'scd_sit_scan' 143 143 144 class SecondSittingResultImage( Image):144 class SecondSittingResultImage(StudentImage): 145 145 """Renders Second Sitting Result scan. 146 146 """ … … 150 150 # Higher Qualification Result 151 151 152 class HigherQualificationResultDisplay( FileDisplay):152 class HigherQualificationResultDisplay(StudentFileDisplay): 153 153 """Higher Qualification Result display viewlet. 154 154 """ … … 161 161 grok.view(ExportPDFClearanceSlipPage) 162 162 163 class HigherQualificationResultUpload( FileUpload):163 class HigherQualificationResultUpload(StudentFileUpload): 164 164 """Higher Qualification Result upload viewlet. 165 165 """ … … 170 170 download_name = u'hq_scan' 171 171 172 class HigherQualificationResultImage( Image):172 class HigherQualificationResultImage(StudentImage): 173 173 """Renders Higher Qualification Result scan. 174 174 """ … … 178 178 # 2nd Higher Qualification Result (PG Students only) 179 179 180 class SecondHigherQualificationResultDisplay( FileDisplay):180 class SecondHigherQualificationResultDisplay(StudentFileDisplay): 181 181 """Second Higher Qualification Result display viewlet. 182 182 """ … … 189 189 grok.view(ExportPDFClearanceSlipPage) 190 190 191 class SecondHigherQualificationResultUpload( FileUpload):191 class SecondHigherQualificationResultUpload(StudentFileUpload): 192 192 """Second Higher Qualification Result upload viewlet. 193 193 """ … … 202 202 return show_viewlet(self) 203 203 204 class SecondHigherQualificationResultImage( Image):204 class SecondHigherQualificationResultImage(StudentImage): 205 205 """Renders Second Higher Qualification Result scan. 206 206 """ … … 210 210 # Advanced Level Result 211 211 212 class AdvancedLevelResultDisplay( FileDisplay):212 class AdvancedLevelResultDisplay(StudentFileDisplay): 213 213 """Advanced Level Result display viewlet. 214 214 """ … … 221 221 grok.view(ExportPDFClearanceSlipPage) 222 222 223 class AdvancedLevelResultUpload( FileUpload):223 class AdvancedLevelResultUpload(StudentFileUpload): 224 224 """Advanced Level Result upload viewlet. 225 225 """ … … 230 230 download_name = u'alr_scan' 231 231 232 class AdvancedLevelResultImage( Image):232 class AdvancedLevelResultImage(StudentImage): 233 233 """Renders Advanced Level Result scan. 234 234 """ … … 238 238 # Certificate 239 239 240 class CertificateDisplay( FileDisplay):240 class CertificateDisplay(StudentFileDisplay): 241 241 """Certificate display viewlet. 242 242 """ … … 249 249 grok.view(ExportPDFClearanceSlipPage) 250 250 251 class CertificateUpload( FileUpload):251 class CertificateUpload(StudentFileUpload): 252 252 """Certificate upload viewlet. 253 253 """ … … 258 258 download_name = u'cert' 259 259 260 class CertificateImage( Image):260 class CertificateImage(StudentImage): 261 261 """Renders Certificate scan. 262 262 """ … … 266 266 # Second Certificate (PG Students only) 267 267 268 class SecondCertificateDisplay( FileDisplay):268 class SecondCertificateDisplay(StudentFileDisplay): 269 269 """ Second Certificate display viewlet. 270 270 """ … … 277 277 grok.view(ExportPDFClearanceSlipPage) 278 278 279 class SecondCertificateUpload( FileUpload):279 class SecondCertificateUpload(StudentFileUpload): 280 280 """Second Certificate upload viewlet. 281 281 """ … … 290 290 return show_viewlet(self) 291 291 292 class SecondCertificateImage( Image):292 class SecondCertificateImage(StudentImage): 293 293 """Renders Second Certificate scan. 294 294 """ … … 298 298 # Third Certificate (PG Students only) 299 299 300 class ThirdCertificateDisplay( FileDisplay):300 class ThirdCertificateDisplay(StudentFileDisplay): 301 301 """ Third Certificate display viewlet. 302 302 """ … … 309 309 grok.view(ExportPDFClearanceSlipPage) 310 310 311 class ThirdCertificateUpload( FileUpload):311 class ThirdCertificateUpload(StudentFileUpload): 312 312 """Third Certificate upload viewlet. 313 313 """ … … 322 322 return show_viewlet(self) 323 323 324 class ThirdCertificateImage( Image):324 class ThirdCertificateImage(StudentImage): 325 325 """Renders Third Certificate scan. 326 326 """ … … 330 330 # Evidence of Name 331 331 332 class EvidenceNameDisplay( FileDisplay):332 class EvidenceNameDisplay(StudentFileDisplay): 333 333 """Evidence of Name display viewlet. 334 334 """ … … 341 341 grok.view(ExportPDFClearanceSlipPage) 342 342 343 class EvidenceNameUpload( FileUpload):343 class EvidenceNameUpload(StudentFileUpload): 344 344 """Evidence of Name upload viewlet. 345 345 """ … … 350 350 download_name = u'evid' 351 351 352 class EvidenceNameImage( Image):352 class EvidenceNameImage(StudentImage): 353 353 """Renders Evidence of Name scan. 354 354 """ … … 358 358 # Result Statement 359 359 360 class ResultStatementDisplay( FileDisplay):360 class ResultStatementDisplay(StudentFileDisplay): 361 361 """Result Statement display viewlet. 362 362 """ … … 369 369 grok.view(ExportPDFClearanceSlipPage) 370 370 371 class ResultStatementUpload( FileUpload):371 class ResultStatementUpload(StudentFileUpload): 372 372 """Result Statement upload viewlet. 373 373 """ … … 378 378 download_name = u'res_stat' 379 379 380 class ResultStatementImage( Image):380 class ResultStatementImage(StudentImage): 381 381 """Renders Result Statement scan. 382 382 """ … … 386 386 # Referee Letter 387 387 388 class RefereeLetterDisplay( FileDisplay):388 class RefereeLetterDisplay(StudentFileDisplay): 389 389 """Referee Letter display viewlet. 390 390 """ … … 397 397 grok.view(ExportPDFClearanceSlipPage) 398 398 399 class RefereeLetterUpload( FileUpload):399 class RefereeLetterUpload(StudentFileUpload): 400 400 """Referee Letter upload viewlet. 401 401 """ … … 406 406 download_name = u'ref_let' 407 407 408 class RefereeLetterImage( Image):408 class RefereeLetterImage(StudentImage): 409 409 """Renders Referee Letter scan. 410 410 """ … … 414 414 # Second Referee Letter (PG Students only) 415 415 416 class SecondRefereeLetterDisplay( FileDisplay):416 class SecondRefereeLetterDisplay(StudentFileDisplay): 417 417 """Second Referee Letter display viewlet. 418 418 """ … … 425 425 grok.view(ExportPDFClearanceSlipPage) 426 426 427 class SecondRefereeLetterUpload( FileUpload):427 class SecondRefereeLetterUpload(StudentFileUpload): 428 428 """Referee Letter upload viewlet. 429 429 """ … … 438 438 return show_viewlet(self) 439 439 440 class SecondRefereeLetterImage( Image):440 class SecondRefereeLetterImage(StudentImage): 441 441 """Renders Referee Letter scan. 442 442 """ … … 446 446 # Third Referee Letter (PG Students only) 447 447 448 class ThirdRefereeLetterDisplay( FileDisplay):448 class ThirdRefereeLetterDisplay(StudentFileDisplay): 449 449 """Third Referee Letter display viewlet. 450 450 """ … … 457 457 grok.view(ExportPDFClearanceSlipPage) 458 458 459 class ThirdRefereeLetterUpload( FileUpload):459 class ThirdRefereeLetterUpload(StudentFileUpload): 460 460 """Referee Letter upload viewlet. 461 461 """ … … 470 470 return show_viewlet(self) 471 471 472 class ThirdRefereeLetterImage( Image):472 class ThirdRefereeLetterImage(StudentImage): 473 473 """Renders Referee Letter scan. 474 474 """ … … 478 478 # Affidavit (former Statutory Declaration) of Good Conduct 479 479 480 class StatutoryDeclarationDisplay( FileDisplay):480 class StatutoryDeclarationDisplay(StudentFileDisplay): 481 481 """Statutory Declaration of Good Conduct display viewlet. 482 482 """ … … 489 489 grok.view(ExportPDFClearanceSlipPage) 490 490 491 class StatutoryDeclarationUpload( FileUpload):491 class StatutoryDeclarationUpload(StudentFileUpload): 492 492 """Statutory Declaration of Good Conduct upload viewlet. 493 493 """ … … 498 498 download_name = u'stat_dec' 499 499 500 class StatutoryDeclarationImage( Image):500 class StatutoryDeclarationImage(StudentImage): 501 501 """Renders Affidavit of Good Conduct scan. 502 502 """ … … 506 506 # Letter of Admission (PG Students only) 507 507 508 class LetterAdmissionDisplay( FileDisplay):508 class LetterAdmissionDisplay(StudentFileDisplay): 509 509 """Letter of Admission display viewlet. 510 510 """ … … 517 517 grok.view(ExportPDFClearanceSlipPage) 518 518 519 class LetterAdmissionUpload( FileUpload):519 class LetterAdmissionUpload(StudentFileUpload): 520 520 """Letter of Admission upload viewlet. 521 521 """ … … 530 530 return show_viewlet(self) 531 531 532 class LetterAdmissionImage( Image):532 class LetterAdmissionImage(StudentImage): 533 533 """Renders Letter of Admission scan. 534 534 """
Note: See TracChangeset for help on using the changeset viewer.