- Timestamp:
- 29 Feb 2016, 09:43:15 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/utils.py
r13679 r13751 57 57 } 58 58 59 def sortCertificates(self, context, resultset): 60 """Sort already filtered certificates in `AppCatCertificateSource`. 61 """ 62 resultlist = sorted(resultset, key=lambda 63 value: value.__parent__.__parent__.__parent__.code + 64 value.__parent__.__parent__.code + 65 value.code) 66 curr_course = context.course1 67 if curr_course is not None and curr_course not in resultlist: 68 resultlist = [curr_course,] + resultlist 69 return resultlist 70 71 def getCertTitle(self, context, value): 72 """Compose the titles in `AppCatCertificateSource`. 73 """ 74 return "%s / %s / %s (%s)" % ( 75 value.__parent__.__parent__.__parent__.code, 76 value.__parent__.__parent__.code, 77 value.code, value.title)
Note: See TracChangeset for help on using the changeset viewer.