Changeset 16854
- Timestamp:
- 1 Mar 2022, 17:17:11 (3 years ago)
- 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 56 56 'aggregate') 57 57 58 class 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 58 64 class SchoolSource(BasicSourceFactory): 59 65 """A source that delivers all kinds of schools. … … 157 163 subj_comb = schema.Choice( 158 164 title = _(u'Subject Combination'), 159 source = AppCatCertificateSource(),165 source = TPUCertificateSource(), 160 166 required = True, 161 167 ) -
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/tests/test_browser.py
r16848 r16854 193 193 def test_final_submit_tpu(self): 194 194 self.certificate.application_category = 'tpu' 195 self.certificate.title = 'NCECert1' 195 196 notify(grok.ObjectModifiedEvent(self.certificate)) 196 197 IWorkflowState(self.tpuapplicant).setState('paid')
Note: See TracChangeset for help on using the changeset viewer.