Changeset 10622


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.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/applicants
Files:
2 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):
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser_templates/applicantdisplaypage.pt

    r10376 r10622  
    4141      i18n:translate="">
    4242    'Management And Social Sciences'
     43  </a>
     44   to exercise.
     45</h4>
     46
     47<h4 tal:condition="view/show_pastq_pude">
     48  Download
     49  <a href="https://uniben.waeup.org/downloads/PUDE_past_questions.pdf"
     50      i18n:translate="">
     51    'PUDE Past Questions'
    4352  </a>
    4453   to exercise.
Note: See TracChangeset for help on using the changeset viewer.