Ignore:
Timestamp:
11 Sep 2013, 17:09:43 (11 years ago)
Author:
Henrik Bettermann
Message:

Enable download of past questions after PUDE applicants have paid.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py

    r10589 r10622  
    7272    grok.template('applicantdisplaypage')
    7373
    74     def _show_pastq(self):
     74    def _show_pastq_putme(self):
    7575        return self.target.startswith('putme') \
    7676               and self.context.state in ('paid', 'submitted') \
     
    7979    @property
    8080    def show_pastq_al(self):
    81         return self._show_pastq() \
     81        return self._show_pastq_putme() \
    8282               and self.context.course1.__parent__.__parent__.code in PASTQ_AL
    8383
    8484    @property
    8585    def show_pastq_bs(self):
    86         return self._show_pastq() \
     86        return self._show_pastq_putme() \
    8787               and self.context.course1.__parent__.__parent__.code in PASTQ_BS
    8888
    8989    @property
    9090    def show_pastq_eps(self):
    91         return self._show_pastq() \
     91        return self._show_pastq_putme() \
    9292               and self.context.course1.__parent__.__parent__.code in PASTQ_EPS
    9393
    9494    @property
    9595    def show_pastq_mss(self):
    96         return self._show_pastq() \
     96        return self._show_pastq_putme() \
    9797               and self.context.course1.__parent__.__parent__.code in PASTQ_MSS
     98
     99    @property
     100    def show_pastq_pude(self):
     101        return self.target.startswith('pude') \
     102               and self.context.state in ('paid', 'submitted')
    98103
    99104class CustomNigeriaPDFApplicationSlip(NigeriaPDFApplicationSlip):
Note: See TracChangeset for help on using the changeset viewer.