Changeset 16227 for main/waeup.uniben/trunk
- Timestamp:
- 7 Sep 2020, 09:03:17 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py
r16211 r16227 130 130 'fst_sit_results', 'scd_sit_results') 131 131 132 TRANS_OMIT_FIELDS = ('suspended', 'applicant_id',)132 TRANS_OMIT_FIELDS = ('suspended',) 133 133 134 134 TRANS_SHORT_OMIT_FIELDS = TRANS_OMIT_FIELDS + ( … … 143 143 #'change_level', 144 144 ) 145 146 TRANS_OMIT_EDIT_FIELDS = TRANS_OMIT_FIELDS + ('applicant_id', ) 147 148 TRANS_SHORT_OMIT_EDIT_FIELDS = TRANS_SHORT_OMIT_FIELDS + ('applicant_id', ) 149 150 TRANS_OMIT_PDF_FIELDS = TRANS_OMIT_FIELDS + ('locked', ) 151 152 TRANS_SHORT_OMIT_PDF_FIELDS = TRANS_SHORT_OMIT_FIELDS + ('locked', ) 145 153 146 154 class CustomApplicantsContainerPage(ApplicantsContainerPage): … … 414 422 if self.target is not None and self.target == 'tscf': 415 423 form_fields = grok.AutoFields(ITranscriptApplicant) 416 for field in TRANS_OMIT_ FIELDS:424 for field in TRANS_OMIT_EDIT_FIELDS: 417 425 form_fields = form_fields.omit(field) 418 426 return form_fields 419 427 if self.target is not None and self.target == 'tscs': 420 428 form_fields = grok.AutoFields(ITranscriptApplicant) 421 for field in TRANS_SHORT_OMIT_ FIELDS:429 for field in TRANS_SHORT_OMIT_EDIT_FIELDS: 422 430 form_fields = form_fields.omit(field) 423 431 return form_fields … … 484 492 if self.target is not None and self.target == 'tscf': 485 493 form_fields = grok.AutoFields(ITranscriptApplicant) 486 for field in TRANS_OMIT_ FIELDS:494 for field in TRANS_OMIT_EDIT_FIELDS: 487 495 form_fields = form_fields.omit(field) 488 496 form_fields = form_fields.omit('locked') … … 490 498 if self.target is not None and self.target == 'tscs': 491 499 form_fields = grok.AutoFields(ITranscriptApplicant) 492 for field in TRANS_SHORT_OMIT_ FIELDS:500 for field in TRANS_SHORT_OMIT_EDIT_FIELDS: 493 501 form_fields = form_fields.omit(field) 494 502 form_fields = form_fields.omit('locked') … … 629 637 if self.target is not None and self.target == 'tscf': 630 638 form_fields = grok.AutoFields(ITranscriptApplicant) 631 for field in TRANS_OMIT_ FIELDS:639 for field in TRANS_OMIT_PDF_FIELDS: 632 640 form_fields = form_fields.omit(field) 633 641 elif self.target is not None and self.target == 'tscs': 634 642 form_fields = grok.AutoFields(ITranscriptApplicant) 635 for field in TRANS_SHORT_OMIT_ FIELDS:643 for field in TRANS_SHORT_OMIT_PDF_FIELDS: 636 644 form_fields = form_fields.omit(field) 637 645 elif self.target is not None and self.target == 'ictwk':
Note: See TracChangeset for help on using the changeset viewer.