Changeset 16070


Ignore:
Timestamp:
24 Apr 2020, 06:59:45 (5 years ago)
Author:
Henrik Bettermann
Message:

Certificate filter box (for demonstration purposes!!!)

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/browser.py

    r16062 r16070  
    3030    RefereeReportDisplayFormPage)
    3131from waeup.kofa.applicants.interfaces import (
    32     ISpecialApplicant, IApplicantsContainer)
     32    ISpecialApplicant, IApplicantsContainer, AppCatCertificateSource)
    3333from kofacustom.nigeria.applicants.browser import (
    3434    NigeriaApplicantDisplayFormPage,
     
    162162
    163163    @property
     164    def certs(self):
     165        appcatcertificatesource = AppCatCertificateSource().factory
     166        for code in appcatcertificatesource.getValues(self.context):
     167            title = appcatcertificatesource.getTitle(self.context, code)
     168            yield(code, title)
     169
     170    @property
    164171    def display_refereereports(self):
    165172        if self.context.refereereports:
     
    184191    """An applicant-centered edit view for applicant data.
    185192    """
     193
     194    grok.template('applicanteditpage')
    186195
    187196    def display_fileupload(self, filename):
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/utils.py

    r16062 r16070  
    9191        """
    9292        try: title = "%s / %s / %s (%s)" % (
    93             value.__parent__.__parent__.__parent__.longtitle,
    94             value.__parent__.__parent__.longtitle,
     93            value.__parent__.__parent__.__parent__.title,
     94            value.__parent__.__parent__.title,
    9595            value.title, value.code)
    9696        except AttributeError:
Note: See TracChangeset for help on using the changeset viewer.