Changeset 16458
- Timestamp:
- 14 Apr 2021, 06:07:09 (4 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r16457 r16458 146 146 def dataNotComplete(self): 147 147 store = getUtility(IExtFileStore) 148 if not store.getFileByContext(self.context, attr=u'passport.jpg'): 148 if self.context.entry_mode in ('ug_ft', 'de_ft') and \ 149 not store.getFileByContext(self.context, attr=u'passport.jpg'): 149 150 return _('No red background passport picture uploaded.') 150 151 if not store.getFileByContext(self.context, attr=u'birth_certificate.jpg'): … … 156 157 if not store.getFileByContext(self.context, attr=u'fst_sit_scan.jpg'): 157 158 return _('No first sitting result uploaded.') 158 #if not store.getFileByContext(self.context, attr=u'scd_sit_scan.jpg'):159 # return _('No second sitting result uploaded.')160 159 if not store.getFileByContext(self.context, attr=u'secr_cults.jpg'): 161 160 return _('No affidavit of non-membership of secret cults uploaded.') … … 782 781 emit_lock_message(self) 783 782 return 783 if self.context.entry_mode not in ('ug_ft', 'de_ft'): 784 emit_lock_message(self) 785 return 784 786 PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES 785 787 if self.context.state not in PORTRAIT_CHANGE_STATES: -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r16456 r16458 144 144 IWorkflowState(self.student).setState('clearance started') 145 145 self.student.nationality = u'NG' 146 self.student['studycourse'].entry_mode = 'ug_ft' 146 147 file_store = getUtility(IExtFileStore) 147 148 self.browser.open(self.login_path) -
main/waeup.uniben/trunk/src/waeup/uniben/students/viewlets.py
r16457 r16458 52 52 if self.context.entry_session != 2020: 53 53 return '' 54 if self.context.entry_mode not in ('ug_ft', 'de_ft'): 55 return '' 54 56 PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES 55 57 if self.context.state not in PORTRAIT_CHANGE_STATES:
Note: See TracChangeset for help on using the changeset viewer.