Ignore:
Timestamp:
7 Sep 2020, 09:03:17 (4 years ago)
Author:
Henrik Bettermann
Message:

Show applicant_id on transcript application slips.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py

    r16211 r16227  
    130130    'fst_sit_results', 'scd_sit_results')
    131131
    132 TRANS_OMIT_FIELDS = ('suspended', 'applicant_id',)
     132TRANS_OMIT_FIELDS = ('suspended',)
    133133
    134134TRANS_SHORT_OMIT_FIELDS = TRANS_OMIT_FIELDS + (
     
    143143    #'change_level',
    144144    )
     145
     146TRANS_OMIT_EDIT_FIELDS = TRANS_OMIT_FIELDS + ('applicant_id', )
     147
     148TRANS_SHORT_OMIT_EDIT_FIELDS = TRANS_SHORT_OMIT_FIELDS + ('applicant_id', )
     149
     150TRANS_OMIT_PDF_FIELDS = TRANS_OMIT_FIELDS + ('locked', )
     151
     152TRANS_SHORT_OMIT_PDF_FIELDS = TRANS_SHORT_OMIT_FIELDS + ('locked', )
    145153
    146154class CustomApplicantsContainerPage(ApplicantsContainerPage):
     
    414422        if self.target is not None and self.target == 'tscf':
    415423            form_fields = grok.AutoFields(ITranscriptApplicant)
    416             for field in TRANS_OMIT_FIELDS:
     424            for field in TRANS_OMIT_EDIT_FIELDS:
    417425                form_fields = form_fields.omit(field)
    418426            return form_fields
    419427        if self.target is not None and self.target == 'tscs':
    420428            form_fields = grok.AutoFields(ITranscriptApplicant)
    421             for field in TRANS_SHORT_OMIT_FIELDS:
     429            for field in TRANS_SHORT_OMIT_EDIT_FIELDS:
    422430                form_fields = form_fields.omit(field)
    423431            return form_fields
     
    484492        if self.target is not None and self.target == 'tscf':
    485493            form_fields = grok.AutoFields(ITranscriptApplicant)
    486             for field in TRANS_OMIT_FIELDS:
     494            for field in TRANS_OMIT_EDIT_FIELDS:
    487495                form_fields = form_fields.omit(field)
    488496                form_fields = form_fields.omit('locked')
     
    490498        if self.target is not None and self.target == 'tscs':
    491499            form_fields = grok.AutoFields(ITranscriptApplicant)
    492             for field in TRANS_SHORT_OMIT_FIELDS:
     500            for field in TRANS_SHORT_OMIT_EDIT_FIELDS:
    493501                form_fields = form_fields.omit(field)
    494502                form_fields = form_fields.omit('locked')
     
    629637        if self.target is not None and self.target == 'tscf':
    630638            form_fields = grok.AutoFields(ITranscriptApplicant)
    631             for field in TRANS_OMIT_FIELDS:
     639            for field in TRANS_OMIT_PDF_FIELDS:
    632640                form_fields = form_fields.omit(field)
    633641        elif self.target is not None and self.target == 'tscs':
    634642            form_fields = grok.AutoFields(ITranscriptApplicant)
    635             for field in TRANS_SHORT_OMIT_FIELDS:
     643            for field in TRANS_SHORT_OMIT_PDF_FIELDS:
    636644                form_fields = form_fields.omit(field)
    637645        elif self.target is not None and self.target == 'ictwk':
Note: See TracChangeset for help on using the changeset viewer.