Changeset 10186 for main/waeup.kofa/trunk/src
- Timestamp:
- 22 May 2013, 07:34:47 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r10184 r10186 104 104 return result 105 105 106 def getTitle(self, context, value): 107 return getUtility( 108 IApplicantsUtils).getCertTitle(context, value) 109 106 110 class ApplicationTypeSource(BasicContextualSourceFactory): 107 111 """An application type source delivers screening types defined in the … … 163 167 """ 164 168 169 def getCertTitle(context, value): 170 """Compose the titles in AppCatCertificateSource. 171 """ 172 165 173 class IApplicantsRoot(IKofaObject, IContainer): 166 174 """A container for university applicants containers. -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/utils.py
r10184 r10186 79 79 80 80 def filterCertificates(self, resultset): 81 """Filter and sort certificates forAppCatCertificateSource.81 """Filter and sort certificates in AppCatCertificateSource. 82 82 """ 83 83 return sorted(resultset, key=lambda value: value.code) 84 85 def getCertTitle(self, context, value): 86 """Compose the titles in AppCatCertificateSource. 87 """ 88 return "%s - %s" % (value.code, value.title)
Note: See TracChangeset for help on using the changeset viewer.