Ignore:
Timestamp:
4 Jul 2014, 11:08:17 (11 years ago)
Author:
Henrik Bettermann
Message:

Method for (customizable) application passport upload requirements added.

File:
1 edited

Legend:

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

    r11729 r11733  
    827827        return getUtility(IApplicantsUtils).SEPARATORS_DICT
    828828
     829    @property
     830    def custom_upload_requirements(self):
     831        return ''
     832
    829833    def update(self):
    830834        super(ApplicantManageFormPage, self).update()
     
    834838        upload = self.request.form.get('form.passport', None)
    835839        if upload:
     840            if self.custom_upload_requirements:
     841                self.flash(
     842                    self.custom_upload_requirements,
     843                    type='danger')
     844                self.redirect(self.url(self.context))
     845                return
    836846            # We got a fresh upload, upload_success is
    837847            # either True or False
Note: See TracChangeset for help on using the changeset viewer.