Changeset 7364 for main/waeup.sirp/trunk/src/waeup/sirp/students/student.py
- Timestamp:
- 17 Dec 2011, 12:54:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/student.py
r7359 r7364 64 64 65 65 @property 66 def fullname(self):66 def display_fullname(self): 67 67 middlename = getattr(self, 'middlename', None) 68 68 sirp_utils = getUtility(ISIRPUtils) 69 69 return sirp_utils.fullname(self.firstname, self.lastname, middlename) 70 71 @property 72 def fullname(self): 73 middlename = getattr(self, 'middlename', None) 74 if middlename: 75 return '%s-%s-%s' % (self.firstname.lower(), 76 middlename.lower(), self.lastname.lower()) 77 else: 78 return '%s-%s' % (self.firstname.lower(), self.lastname.lower()) 70 79 71 80 @property
Note: See TracChangeset for help on using the changeset viewer.