Ignore:
Timestamp:
1 May 2013, 06:53:18 (11 years ago)
Author:
Henrik Bettermann
Message:

Customize application forms. KwaraPoly? distinguishes nd and hnd ug applicants. This causes a lot of customization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/applicant.py

    r9347 r10132  
    3131    grok.provides(ICustomApplicant)
    3232
     33    @property
     34    def is_nd(self):
     35        if self.applicant_id.startswith('nd') \
     36            or self.applicant_id.startswith('prend'):
     37            return True
     38        return False
     39
     40
    3341# Set all attributes of CustomApplicant required in ICustomApplicant as field
    3442# properties. Doing this, we do not have to set initial attributes
Note: See TracChangeset for help on using the changeset viewer.