Changeset 16457 for main/waeup.uniben/trunk/src/waeup/uniben/students
- Timestamp:
- 13 Apr 2021, 11:51:23 (4 years ago)
- 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 782 782 emit_lock_message(self) 783 783 return 784 slip = getUtility(IExtFileStore).getFileByContext(785 self.context, 'application_slip')786 784 PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES 787 785 if self.context.state not in PORTRAIT_CHANGE_STATES: -
main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py
r16449 r16457 52 52 if self.context.entry_session != 2020: 53 53 return '' 54 # Passport pictures must not be editable if application slip55 # exists.56 slip = getUtility(IExtFileStore).getFileByContext(57 self.context, 'application_slip')58 54 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: 60 56 return '' 61 57 return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.