Changeset 16508 for main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
- Timestamp:
- 16 Jun 2021, 11:54:39 (3 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
- Files:
-
- 4 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') -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interfaces.py
r16484 r16508 115 115 DICT_NAME = 'DISABILITIES_DICT' 116 116 117 class GradingSystemSource(ContextualDictSourceFactoryBase): 118 """A application category source delivers all special handling categories 119 provided for accommodation booking. 120 """ 121 #: name of dict to deliver from kofa utils. 122 DICT_NAME = 'GRADING_SYSTEM_DICT' 117 123 118 124 class ICustomSessionConfiguration(ISessionConfiguration): -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/utils/utils.py
r16491 r16508 318 318 } 319 319 320 GRADING_SYSTEM_DICT = { 321 'A': 'Regular Course Grading System (2018/2019 till date)', 322 'B': 'Old Course Grading System (2012/2013 - 2017/2018)', 323 } 320 324 321 325 @property
Note: See TracChangeset for help on using the changeset viewer.