Ignore:
Timestamp:
6 Nov 2013, 10:56:11 (11 years ago)
Author:
Henrik Bettermann
Message:

We need to customize the states in which students can change their passport picture (portrait).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py

    r10694 r10706  
    557557    @property
    558558    def target_url(self):
    559         if self.context.state != ADMITTED:
     559        PWCHANGE_STATES = getUtility(IStudentsUtils).PWCHANGE_STATES
     560        if self.context.state not in PWCHANGE_STATES:
    560561            return ''
    561562        return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.