- Timestamp:
- 16 Jun 2021, 11:54:39 (4 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/browser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/browser/pages.py
r14742 r16508 20 20 21 21 import grok 22 from zope.component import getUtility 23 from waeup.kofa.interfaces import IKofaUtils 22 24 from waeup.kofa.browser.pages import ( 23 25 SessionConfigurationAddFormPage, … … 57 59 return 58 60 61 def _set_grading_sys(self): 62 grading_sys = getUtility(IKofaUtils).GRADING_SYSTEM_DICT 63 self.grading_sys = sorted(grading_sys.items()) 64 return 65 59 66 def update(self): 60 67 super(NigeriaSourcesOverview, self).update() … … 63 70 self._set_exam_types() 64 71 self._set_lgas() 72 self._set_grading_sys() 65 73 return 66 74 -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/browser/viewlets.py
r12956 r16508 62 62 source_name = 'exam_types' 63 63 title = _('Higher Qualification Examination Types') 64 65 class GradingSysSource(InstTypesSource): 66 """Available grading systems for the sources overview page. 67 """ 68 grok.order(10) 69 name = 'GradingSystems' 70 source_name = 'grading_sys' 71 title = _('Nigerian Course Grading Systems')
Note: See TracChangeset for help on using the changeset viewer.