Changeset 14698 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 21 Jun 2017, 22:12:04 (8 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py
r14539 r14698 149 149 """A source for filtering groups of students 150 150 """ 151 #: name of dict to deliver from kofa utils.152 151 DICT_NAME = 'DISABLE_PAYMENT_GROUP_DICT' 152 153 154 class EnableScoreEditingGroupSource(ContextualDictSourceFactoryBase): 155 """A source for filtering groups of students 156 """ 157 DICT_NAME = 'ENABLE_SCORE_EDITING_GROUP_DICT' 158 153 159 154 160 # Define a validation method for email addresses … … 738 744 current_academic_session = schema.Choice( 739 745 title = _(u'Current Academic Session'), 740 description = _(u'Session for which score editing is allowed'),746 description = _(u'Session for which score editing is enabled'), 741 747 source = academic_sessions_vocab, 742 748 default = None, 743 749 required = False, 744 750 readonly = False, 751 ) 752 753 score_editing_enabled = schema.List( 754 title = _(u'Score editing enabled (not used)'), 755 value_type = schema.Choice( 756 source = EnableScoreEditingGroupSource(), 757 ), 758 required = False, 759 defaultFactory=list, 745 760 ) 746 761 -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r14685 r14698 1203 1203 self.browser.getLink("Add balance payment ticket").click() 1204 1204 1205 # Palance payment form is provided1205 # Balance payment form is provided 1206 1206 self.assertEqual(self.student.current_session, 2004) 1207 1207 self.browser.getControl(name="form.p_category").value = ['schoolfee'] -
main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
r14638 r14698 139 139 } 140 140 141 ENABLE_SCORE_EDITING_GROUP_DICT = {} # not configured in base package 142 141 143 DISABLE_PAYMENT_GROUP_DICT = { 142 144 'sf_all': 'School Fee - All Students', … … 200 202 201 203 MODE_GROUPS = { 204 'All': ('all',), 205 'Undergraduate Full-Time': ('ug_ft',), 206 'Undergraduate Part-Time': ('ug_pt',), 207 'Postgraduate Full-Time': ('pg_ft',), 208 'Postgraduate Part-Time': ('pg_pt',), 209 } 210 211 SCORE_EDITING_GROUP_DICT = { 202 212 'All': ('all',), 203 213 'Undergraduate Full-Time': ('ug_ft',),
Note: See TracChangeset for help on using the changeset viewer.