Ignore:
Timestamp:
1 Mar 2022, 17:17:11 (3 years ago)
Author:
Henrik Bettermann
Message:

Implement TPUCertificateSource.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/interfaces.py

    r16848 r16854  
    5656    'aggregate')
    5757
     58class TPUCertificateSource(AppCatCertificateSource):
     59
     60    def getValues(self, context):
     61        resultlist = super(TPUCertificateSource, self).getValues(context)
     62        return [i for i in resultlist if i.title.startswith('NCE')]
     63
    5864class SchoolSource(BasicSourceFactory):
    5965    """A source that delivers all kinds of schools.
     
    157163    subj_comb = schema.Choice(
    158164        title = _(u'Subject Combination'),
    159         source = AppCatCertificateSource(),
     165        source = TPUCertificateSource(),
    160166        required = True,
    161167        )
Note: See TracChangeset for help on using the changeset viewer.