Ignore:
Timestamp:
3 Dec 2014, 06:43:26 (10 years ago)
Author:
Henrik Bettermann
Message:

Do only provide invitation letter if physical_clearance_date is set and student is in state 'clearance requested'.

File:
1 edited

Legend:

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

    r12121 r12122  
    6767    text = _('Download clearance invitation slip')
    6868    target = 'clearance_invitation_slip.pdf'
     69
     70    @property
     71    def target_url(self):
     72        if self.context.student.state == REQUESTED \
     73            and self.context.student.physical_clearance_date:
     74            return self.view.url(self.view.context, self.target)
     75        return False
    6976
    7077
Note: See TracChangeset for help on using the changeset viewer.