Ignore:
Timestamp:
8 Jul 2016, 12:48:18 (8 years ago)
Author:
Henrik Bettermann
Message:

Revert changes from last revision. They don't work as expected in custom packages.

File:
1 edited

Legend:

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

    r14024 r14025  
    6969grok.context(IKofaObject) # Make IKofaObject the default context
    7070
     71WARNING = _('You can not edit your application records after final submission.'
     72            ' You really want to submit?')
     73
    7174class ApplicantsRootPage(KofaDisplayFormPage):
    7275    grok.context(IApplicantsRoot)
     
    10701073            return False
    10711074
    1072 def final_submit_warning():
    1073     if IApplicant.get('referees'):
    1074         return _('You can not edit your application record after '
    1075             'final submission and invitation emails will be sent to the '
    1076             'designated referees directly after submission. '
    1077             'You really want to submit?')
    1078     return _('You can not edit your application records after final submission.'
    1079         ' You really want to submit?')
    1080 
    10811075class ApplicantEditFormPage(ApplicantManageFormPage):
    10821076    """An applicant-centered edit view for applicant data.
     
    12081202        return failed, emails_sent
    12091203
    1210     @action(_('Finally Submit'), warning=final_submit_warning())
     1204    @action(_('Finally Submit'), warning=WARNING)
    12111205    def finalsubmit(self, **data):
    12121206        if self.upload_success is False:  # False is not None!
Note: See TracChangeset for help on using the changeset viewer.