Changeset 9987 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 24 Feb 2013, 11:15:47 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/payments/payment.py
r9984 r9987 67 67 @property 68 68 def display_item(self): 69 return self.p_item 69 kofa_utils = getUtility(IKofaUtils) 70 return kofa_utils.getPaymentItem(self) 70 71 71 72 class OnlinePayment(Payment): -
main/waeup.kofa/trunk/src/waeup/kofa/students/accommodation.py
r9984 r9987 26 26 from waeup.kofa.interfaces import academic_sessions_vocab, IKofaUtils 27 27 from waeup.kofa.students.interfaces import ( 28 IStudentAccommodation, IStudentNavigation, IBedTicket )28 IStudentAccommodation, IStudentNavigation, IBedTicket, IStudentsUtils) 29 29 from waeup.kofa.utils.helpers import attrs_to_fields 30 30 … … 78 78 @property 79 79 def display_coordinates(self): 80 return self.bed_coordinates 80 students_utils = getUtility(IStudentsUtils) 81 return students_utils.getBedCoordinates(self) 81 82 82 83 def writeLogMessage(self, view, message): -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r9981 r9987 649 649 return 0 650 650 651 def getBedCoordinates(self, bedticket): 652 """Return bed coordinates. 653 654 This method can be used to customize the display_coordinates 655 property method. 656 """ 657 return bedticket.bed_coordinates 658 651 659 VERDICTS_DICT = { 652 660 '0': _('(not yet)'), -
main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
r9868 r9987 271 271 return send_mail( 272 272 from_name,from_addr,rcpt_name,rcpt_addr,subject,body,config) 273 274 def getPaymentItem(self, payment): 275 """Return payment item. 276 277 This method can be used to customize the display_item property method. 278 """ 279 return payment.p_item
Note: See TracChangeset for help on using the changeset viewer.