Ignore:
Timestamp:
13 Apr 2021, 11:51:23 (4 years ago)
Author:
Henrik Bettermann
Message:

Show upload button.

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

Legend:

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

    r16456 r16457  
    782782            emit_lock_message(self)
    783783            return
    784         slip = getUtility(IExtFileStore).getFileByContext(
    785             self.context, 'application_slip')
    786784        PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES
    787785        if self.context.state not in PORTRAIT_CHANGE_STATES:
  • main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py

    r16449 r16457  
    5252        if self.context.entry_session != 2020:
    5353            return ''
    54         # Passport pictures must not be editable if application slip
    55         # exists.
    56         slip = getUtility(IExtFileStore).getFileByContext(
    57             self.context, 'application_slip')
    5854        PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES
    59         if self.context.state not in PORTRAIT_CHANGE_STATES or slip is not None:
     55        if self.context.state not in PORTRAIT_CHANGE_STATES:
    6056            return ''
    6157        return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.