Changeset 13755 for main/waeup.aaue/trunk/src
- Timestamp:
- 1 Mar 2016, 11:31:01 (9 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r13753 r13755 444 444 445 445 def test_set_matric_number(self): 446 payment = createObject('waeup.StudentOnlinePayment')447 payment.p_category = u'concessional'448 payment.p_id = u'anyid'449 payment.p_state = u'paid'450 self.student['payments']['anykey'] = payment446 #payment = createObject('waeup.StudentOnlinePayment') 447 #payment.p_category = u'concessional' 448 #payment.p_id = u'anyid' 449 #payment.p_state = u'paid' 450 #self.student['payments']['anykey'] = payment 451 451 # Login as student 452 452 self.browser.open(self.login_path) -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py
r13749 r13755 130 130 site['configuration'].next_matric_integer_3 = 1 131 131 self.student.matric_number = None 132 msg, mnumber = utils.setMatricNumber(self.student)133 self.assertEqual(msg, 'Matriculation number cannot be set.')134 payment = createObject('waeup.StudentOnlinePayment')135 payment.p_category = u'concessional'136 payment.p_id = u'anyid'137 payment.p_state = u'paid'138 self.student['payments']['anykey'] = payment132 #msg, mnumber = utils.setMatricNumber(self.student) 133 #self.assertEqual(msg, 'Matriculation number cannot be set.') 134 #payment = createObject('waeup.StudentOnlinePayment') 135 #payment.p_category = u'concessional' 136 #payment.p_id = u'anyid' 137 #payment.p_state = u'paid' 138 #self.student['payments']['anykey'] = payment 139 139 # Regular ft students have a matric number without leading constant. 140 140 msg, mnumber = utils.setMatricNumber(self.student) -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r13753 r13755 76 76 student.current_mode == 'found': 77 77 return _('Matriculation number cannot be set.'), None 78 if student.current_mode not in ('mug_ft', 'mde_ft') and \79 not self._concessionalPaymentMade(student):80 return _('Matriculation number cannot be set.'), None78 #if student.current_mode not in ('mug_ft', 'mde_ft') and \ 79 # not self._concessionalPaymentMade(student): 80 # return _('Matriculation number cannot be set.'), None 81 81 if student.is_postgrad: 82 82 next_integer = grok.getSite()['configuration'].next_matric_integer_3
Note: See TracChangeset for help on using the changeset viewer.