Ignore:
Timestamp:
18 Oct 2021, 20:36:54 (3 years ago)
Author:
Henrik Bettermann
Message:

Do not show upload viewlets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py

    r16588 r16683  
    413413            return _('You are not entitled to upload passport pictures.')
    414414
     415    def display_fileupload(self, filename):
     416        if filename[1] == 'res_stat' \
     417            and self.target is not None \
     418            and not self.target.startswith('tsc'):
     419            return False
     420        if filename[1] == 'eligibility' \
     421            and self.target is not None \
     422            and not self.target.startswith('tsc'):
     423            return False
     424        return True
     425
    415426    @property
    416427    def label(self):
     
    562573
    563574    def display_fileupload(self, filename):
    564         if filename[1] == 'res_stat.pdf' \
     575        if filename[1] == 'res_stat' \
    565576            and self.target is not None \
    566577            and not self.target.startswith('tsc'):
    567578            return False
    568         if filename[1] == 'eligibility.pdf' \
     579        if filename[1] == 'eligibility' \
    569580            and self.target is not None \
    570581            and not self.target.startswith('tsc'):
Note: See TracChangeset for help on using the changeset viewer.