Changeset 16526 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 5 Jul 2021, 15:42:14 (3 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/payments.py
r15325 r16526 182 182 183 183 @property 184 def payer(self): 185 "The payer object" 186 return self.context.student 187 188 @property 184 189 def display_fullname(self): 185 190 "Name of payer" … … 230 235 "Current level of payer" 231 236 return self.context.student.current_level 237 238 def doAfterPayment(self): 239 "Do after payment was made." 240 return self.context.student.doAfterStudentPayment() 232 241 233 242 # Student online payments must be importable. So we might need a factory. -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r16465 r16526 3408 3408 # Student is the payer of the payment ticket. 3409 3409 payer = IPayer(self.student['payments'][value]) 3410 self.assertEqual(payer.payer, self.student) 3410 3411 self.assertEqual(payer.display_fullname, 'Anna Tester') 3411 3412 self.assertEqual(payer.id, self.student_id)
Note: See TracChangeset for help on using the changeset viewer.