Changeset 9987 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 24 Feb 2013, 11:15:47 (12 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/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)'),
Note: See TracChangeset for help on using the changeset viewer.