- Timestamp:
- 26 Oct 2017, 08:29:36 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/browser.py
r14882 r14883 58 58 if not store.getFileByContext(self.context, attr=u'o_level_result.jpg'): 59 59 return _('No O Level result uploaded.') 60 if self.context.current_mode.startswith('nd'): 60 cm = getattr(self.context,'current_mode', None) 61 if cm and cm.startswith('nd'): 61 62 if not store.getFileByContext(self.context, attr=u'jamb_result.jpg'): 62 63 return _('No JAMB result uploaded.') 63 elif self.context.current_mode.startswith('hnd'):64 elif cm and cm.startswith('hnd'): 64 65 if not store.getFileByContext(self.context, attr=u'nd_result.jpg'): 65 66 return _('No ND result uploaded.')
Note: See TracChangeset for help on using the changeset viewer.