Ignore:
Timestamp:
15 Aug 2020, 09:15:24 (4 years ago)
Author:
Henrik Bettermann
Message:

ASE applicants are not allowed to edit their uploaded passport picture. But they are allowed to submit if no poassport picture has been uploaded.

Location:
main/waeup.uniben/trunk/src/waeup/uniben
Files:
4 edited

Legend:

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

    r16184 r16199  
    556556    def dataNotComplete(self, data):
    557557        store = getUtility(IExtFileStore)
    558         if self.context.__parent__.with_picture:
     558        if self.context.__parent__.with_picture \
     559            and self.context.__parent__.picture_editable:
    559560            store = getUtility(IExtFileStore)
    560561            if not store.getFileByContext(self.context, attr=u'passport.jpg'):
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/utils.py

    r16175 r16199  
    141141            payment.amount_auth = container_fee
    142142        return
     143
     144    def isPictureEditable(self, container):
     145        """False if applicants are not allowed to edit uploaded pictures.
     146        """
     147        if container.code.startswith('ase'):
     148            return False
     149        return container.with_picture
  • main/waeup.uniben/trunk/src/waeup/uniben/locales/en/LC_MESSAGES/waeup.kofa.po

    r15308 r16199  
    4141"want to submit?"
    4242msgstr ""
    43 "Please ensure that your passport picture is clear and has a red background. "
    44 "\\n\\nYou can not edit your application records after final submission. You "
    45 "really want to submit?"
     43"If you are allowed to upload your passport picture, please ensure that the "
     44"picture is clear and has a red background.  \\n\\nYou can not edit your "
     45"application records after final submission. You really want to submit?"
    4646
    4747msgid "Custom Float 1 (not used)"
Note: See TracChangeset for help on using the changeset viewer.