Ignore:
Timestamp:
8 Apr 2020, 10:48:10 (5 years ago)
Author:
Henrik Bettermann
Message:

Change headlines and add referee entry field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/browser.py

    r16017 r16049  
    4343    #UG_OMIT_MANAGE_FIELDS,
    4444    #UG_OMIT_EDIT_FIELDS,
    45     PG_OMIT_DISPLAY_FIELDS,
    46     PG_OMIT_PDF_FIELDS,
    47     PG_OMIT_MANAGE_FIELDS,
    48     PG_OMIT_EDIT_FIELDS,
     45    #PG_OMIT_DISPLAY_FIELDS,
     46    #PG_OMIT_PDF_FIELDS,
     47    #PG_OMIT_MANAGE_FIELDS,
     48    #PG_OMIT_EDIT_FIELDS,
    4949    )
    5050from kofacustom.iuokada.applicants.interfaces import (
     
    7878    'aggregate')
    7979
     80# PG has its own interface
     81PG_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS
     82PG_OMIT_PDF_FIELDS = PG_OMIT_DISPLAY_FIELDS + ('phone',)
     83PG_OMIT_MANAGE_FIELDS = (
     84    'special_application',
     85    'employer',
     86    'emp_position',
     87    'emp_start',
     88    'emp_end',
     89    'emp_reason',
     90    'employer2',
     91    'emp2_position',
     92    'emp2_start',
     93    'emp2_end',
     94    'emp2_reason',
     95    )
     96PG_OMIT_EDIT_FIELDS = PG_OMIT_MANAGE_FIELDS + PG_OMIT_DISPLAY_FIELDS + (
     97    'student_id', 'notice',
     98    'screening_score', 'screening_venue',
     99    'screening_date',)
     100
    80101class CustomApplicantsContainerPage(ApplicantsContainerPage):
    81102    """The standard view for regular applicant containers.
     
    142163    """An applicant-centered edit view for applicant data.
    143164    """
     165
     166    @property
     167    def display_refereereports(self):
     168        return True
    144169
    145170    def display_fileupload(self, filename):
Note: See TracChangeset for help on using the changeset viewer.