Ignore:
Timestamp:
22 May 2024, 07:25:56 (4 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/utils/utils.py

    r17376 r17798  
    290290
    291291    def getCertTitle(self, context, value):
    292         """Compose the titles in `CertificateSource`.
     292        """Compose the titles in `CertificateSource.
    293293        """
    294294        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)
    295300
    296301    def sendContactForm(self, from_name, from_addr, rcpt_name, rcpt_addr,
Note: See TracChangeset for help on using the changeset viewer.