Changeset 8137
- Timestamp:
- 12 Apr 2012, 20:39:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r8129 r8137 18 18 import grok 19 19 from zope.formlib.textwidgets import BytesDisplayWidget 20 from zope.component import getUtility 20 21 from waeup.kofa.widgets.datewidget import ( 21 22 FriendlyDateWidget, FriendlyDateDisplayWidget 22 23 ) 24 from waeup.kofa.interfaces import IExtFileStore 23 25 from waeup.kofa.students.browser import ( 24 26 StudentPersonalDisplayFormPage, … … 164 166 return form_fields 165 167 168 def dataNotComplete(self): 169 store = getUtility(IExtFileStore) 170 if not store.getFileByContext(self.context, attr=u'birth_certicicate.jpg'): 171 return _('No birth certificate uploaded.') 172 if not store.getFileByContext(self.context, attr=u'ref_let.jpg'): 173 return _('No referee letter uploaded.') 174 if not store.getFileByContext(self.context, attr=u'acc_let.jpg'): 175 return _('No acceptance letter uploaded.') 176 if not store.getFileByContext(self.context, attr=u'fst_sit_scan.jpg'): 177 return _('No first sitting result uploaded.') 178 return False 179
Note: See TracChangeset for help on using the changeset viewer.