Ignore:
Timestamp:
22 May 2024, 07:25:56 (6 months ago)
Author:
Henrik Bettermann
Message:

Make the certificate's longtitle customizable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/university/certificate.py

    r14652 r17798  
    2727from zope.component.interfaces import IFactory, ComponentLookupError
    2828from zope.interface import implementedBy
    29 from waeup.kofa.interfaces import IKofaPluggable
     29from waeup.kofa.interfaces import IKofaPluggable, IKofaUtils
    3030from waeup.kofa.university.interfaces import (
    3131    ICertificate, ICertificateCourse)
     
    9393    @property
    9494    def longtitle(self):
    95         return "%s (%s)" % (self.title,self.code)
     95        return getUtility(
     96            IKofaUtils).getCertLongTitle(self)
     97
    9698
    9799    def addCertCourse(self, course, level=100,
Note: See TracChangeset for help on using the changeset viewer.