Changeset 17798 for main/waeup.kofa
- Timestamp:
- 22 May 2024, 07:25:56 (6 months ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/CHANGES.txt
r17787 r17798 4 4 1.8.2.dev0 (unreleased) 5 5 ======================= 6 7 * Make the certificate's longtitle customizable. 6 8 7 9 * Add `SessionConfigurationProcessor`. -
main/waeup.kofa/trunk/src/waeup/kofa/university/certificate.py
r14652 r17798 27 27 from zope.component.interfaces import IFactory, ComponentLookupError 28 28 from zope.interface import implementedBy 29 from waeup.kofa.interfaces import IKofaPluggable 29 from waeup.kofa.interfaces import IKofaPluggable, IKofaUtils 30 30 from waeup.kofa.university.interfaces import ( 31 31 ICertificate, ICertificateCourse) … … 93 93 @property 94 94 def longtitle(self): 95 return "%s (%s)" % (self.title,self.code) 95 return getUtility( 96 IKofaUtils).getCertLongTitle(self) 97 96 98 97 99 def addCertCourse(self, course, level=100, -
main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
r17376 r17798 290 290 291 291 def getCertTitle(self, context, value): 292 """Compose the titles in `CertificateSource `.292 """Compose the titles in `CertificateSource. 293 293 """ 294 294 return "%s - %s" % (value.code, value.title) 295 296 def getCertLongTitle(self, value): 297 """Compose certificate's longtitle. 298 """ 299 return "%s (%s)" % (value.title, value.code) 295 300 296 301 def sendContactForm(self, from_name, from_addr, rcpt_name, rcpt_addr,
Note: See TracChangeset for help on using the changeset viewer.