Changeset 14490 for main/waeup.aaue/trunk/src/waeup/aaue
- Timestamp:
- 1 Feb 2017, 15:48:46 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py
r14487 r14490 128 128 if not fac_dep_paid: 129 129 return _("Please pay faculty and departmental dues first.") 130 restitution_paid = True131 if self.student.entry_session < 2016 \132 and self.student.current_mode == 'ug_ft':133 restitution_paid = False134 for ticket in self.student['payments'].values():135 if ticket.p_category == 'restitution' and \136 ticket.p_session == self.level_session and \137 ticket.p_state == 'paid':138 restitution_paid = True139 continue140 if not restitution_paid:141 return _("Please pay restitution fee first.")130 #restitution_paid = True 131 #if self.student.entry_session < 2016 \ 132 # and self.student.current_mode == 'ug_ft': 133 # restitution_paid = False 134 # for ticket in self.student['payments'].values(): 135 # if ticket.p_category == 'restitution' and \ 136 # ticket.p_session == self.level_session and \ 137 # ticket.p_state == 'paid': 138 # restitution_paid = True 139 # continue 140 #if not restitution_paid: 141 # return _("Please pay restitution fee first.") 142 142 if self.student.is_fresh: 143 143 return -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r14478 r14490 976 976 self.browser.getLink("Edit course list").click() 977 977 self.browser.getControl("Register course list").click() 978 self.assertTrue('Please pay restitution fee first'979 in self.browser.contents)980 self.app['configuration']['2004'].restitution_fee = 9999.0981 self.browser.open(self.payments_path + '/addop')982 self.browser.getControl(name="form.p_category").value = ['restitution']983 self.browser.getControl("Create ticket").click()984 self.student['payments'].values()[0].approveStudentPayment()985 self.browser.open(self.studycourse_path + '/100/edit')986 self.browser.getControl("Register course list").click()978 #self.assertTrue('Please pay restitution fee first' 979 # in self.browser.contents) 980 #self.app['configuration']['2004'].restitution_fee = 9999.0 981 #self.browser.open(self.payments_path + '/addop') 982 #self.browser.getControl(name="form.p_category").value = ['restitution'] 983 #self.browser.getControl("Create ticket").click() 984 #self.student['payments'].values()[0].approveStudentPayment() 985 #self.browser.open(self.studycourse_path + '/100/edit') 986 #self.browser.getControl("Register course list").click() 987 987 self.assertTrue('Course list has been registered' 988 988 in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.