Changeset 16854


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

Implement TPUCertificateSource.

Location:
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants
Files:
2 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        )
  • main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/tests/test_browser.py

    r16848 r16854  
    193193    def test_final_submit_tpu(self):
    194194        self.certificate.application_category = 'tpu'
     195        self.certificate.title = 'NCECert1'
    195196        notify(grok.ObjectModifiedEvent(self.certificate))
    196197        IWorkflowState(self.tpuapplicant).setState('paid')
Note: See TracChangeset for help on using the changeset viewer.