Changeset 13341 for main/waeup.kwarapoly


Ignore:
Timestamp:
20 Oct 2015, 14:36:27 (9 years ago)
Author:
Henrik Bettermann
Message:

Not all documents are required.

Location:
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/browser.py

    r13331 r13341  
    193193        mgr.update()
    194194        missing_files = []
     195        required = (
     196            'birthcertificateupload',
     197            'acceptanceletterupload',
     198            'lgaidentificationupload',
     199            'firstsittingresultupload',
     200            'resultstatementupload',
     201            'refereeletterupload',
     202            'statutorydeclarationupload',
     203            )
     204
    195205        for viewlet in mgr.viewlets:
     206            if viewlet.__name__ not in required:
     207                continue
    196208            if viewlet.show_viewlet and not viewlet.file_exists:
    197209                missing_files += (viewlet.label, )
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_browser.py

    r13331 r13341  
    580580        self.assertTrue(
    581581            'Missing: Birth Certificate, Acceptance Letter, LGA Identification, '
    582             'First Sitting Result, Second Sitting Result, '
    583             'Higher Qualification Result, Advanced Level Result, Certificate, '
    584             'Evidence of Name, Result Statement, Guarantor/Referee Letter, '
     582            'First Sitting Result, Result Statement, Guarantor/Referee Letter, '
    585583            'Affidavit of Good Conduct'
    586584            in self.browser.contents)
     
    599597        self.assertTrue(
    600598            'Missing: Acceptance Letter, LGA Identification, '
    601             'First Sitting Result, Second Sitting Result, '
    602             'Higher Qualification Result, Advanced Level Result, Certificate, '
    603             'Evidence of Name, Result Statement, Guarantor/Referee Letter, '
     599            'First Sitting Result, Result Statement, Guarantor/Referee Letter, '
    604600            'Affidavit of Good Conduct'
    605601            in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.